Skip to content

Commit

Permalink
fix(ui): fix map mode system tooltip header displayed even if no valu…
Browse files Browse the repository at this point in the history
…es available
  • Loading branch information
MichaelMakesGames committed Sep 9, 2024
1 parent bc85abd commit b342e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/lib/map/MapTooltip.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<strong>{$t(processedSystem.mapModeCountryLabel)}</strong>
</div>
{/if}
{#if processedSystem?.mapModeValues?.length}
{#if processedSystem?.mapModeValues?.filter((v) => v.value).length}
<strong class="mt-2 block">
{$t(mapModes[$mapSettings.mapMode]?.tooltipLabel ?? 'generic.NEVER')}
</strong>
Expand Down

0 comments on commit b342e58

Please sign in to comment.