diff --git a/packages/website/src/components/Footer.astro b/packages/website/src/components/Footer.astro index 3bcd19c6c..ff2f490d3 100644 --- a/packages/website/src/components/Footer.astro +++ b/packages/website/src/components/Footer.astro @@ -12,6 +12,7 @@ export interface Props { } const gameDefinitions = await api.gameDefinitions(); +const gameVersion = gameDefinitions.version.split("_")[0]; const environment = assertSecret(import.meta.env.PUBLIC_ENVIRONMENT); const { locale } = Astro.props; const strings = getStrings(locale); @@ -141,7 +142,7 @@ const strings = getStrings(locale); ) } - CDN + Branch @@ -151,7 +152,7 @@ const strings = getStrings(locale); { environment !== "preview" && ( - {gameDefinitions.version} + {gameVersion} ) } @@ -174,13 +175,13 @@ const strings = getStrings(locale); WoTB - {gameDefinitions.version} + {gameVersion} ) } - CDN + Branch {environment}