okay that's better
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 13 Feb 2022 22:43:08 +0000 (17:43 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 13 Feb 2022 22:43:08 +0000 (17:43 -0500)
src/jvmMain/kotlin/starshipfights/info/views_user.kt

index e0539258982a34b0646456cdd9708a5e7ceacd5f..043ec17d91bd4fcc3525496e0164869362cecae6 100644 (file)
@@ -258,12 +258,13 @@ suspend fun ApplicationCall.manageUserPage(): HTML.() -> Unit {
                                                }
                                        }
                                }
-                               tr {
-                                       td {
-                                               colSpan = "3"
-                                               a(href = "/clear-all-expired") { +"Clear All Expired Sessions" }
+                               if (expiredSessions.isNotEmpty())
+                                       tr {
+                                               td {
+                                                       colSpan = "3"
+                                                       a(href = "/clear-all-expired") { +"Clear All Expired Sessions" }
+                                               }
                                        }
-                               }
                        }
                }
        }