Fix again
authorTheSaminator <thesaminator@users.noreply.github.com>
Mon, 4 Jul 2022 23:20:05 +0000 (19:20 -0400)
committerTheSaminator <thesaminator@users.noreply.github.com>
Mon, 4 Jul 2022 23:20:05 +0000 (19:20 -0400)
src/jsMain/kotlin/net/starshipfights/campaign/campaign_ui.kt

index b5510be467e26e66f2d0dcd73de3c15aebe86d8e..3aff8909745592286ceade2e425970397331af7f 100644 (file)
@@ -252,7 +252,10 @@ object CampaignUI {
                                        }
                                        p {
                                                style = "text-align:center"
-                                               +"${system.totalFleetStrength} fleet strength present"
+                                               +if (system.totalFleetStrength > 0)
+                                                       "${system.totalFleetStrength} fleet strength present"
+                                               else
+                                                       "No fleets present"
                                        }
                                        
                                        selectedSystemIndicators[selection.id]?.visible = true