diff --git a/packages/website/src/components/ConsumablesManager.tsx b/packages/website/src/components/ConsumablesManager.tsx index 28b6a812d..b71a44ecd 100644 --- a/packages/website/src/components/ConsumablesManager.tsx +++ b/packages/website/src/components/ConsumablesManager.tsx @@ -36,9 +36,8 @@ export function ConsumablesManager({ special={consumable.duration === undefined} duration={ timers - ? consumable.duration === undefined - ? undefined - : consumable.duration * (hasHighEndConsumables ? 1.33 : 1) + ? (consumable.duration ?? 0) * + (hasHighEndConsumables ? 1.33 : 1) || undefined : undefined } cooldown={ diff --git a/packages/website/src/pages/[...locale]/index.astro b/packages/website/src/pages/[...locale]/index.astro index 9dba8b0c5..4495f1d92 100644 --- a/packages/website/src/pages/[...locale]/index.astro +++ b/packages/website/src/pages/[...locale]/index.astro @@ -6,7 +6,6 @@ import { literals } from "@blitzkit/i18n/src/literals"; import { Box, Flex, Link } from "@radix-ui/themes"; import type { GetStaticPaths } from "astro"; import { AesonPlug } from "../../components/AesonPlug"; -import { Giveaway } from "../../components/Giveaway"; import HomeHero from "../../components/HomeHero.astro"; import { Plugs } from "../../components/Plugs"; import ToolCard from "../../components/ToolCard.astro"; @@ -29,7 +28,7 @@ for (const id in tools) { const compatibleRow = rows.find( (row) => row.length < MAX_TOOLS_PER_ROW && - !("significant" in row[0] && row[0].significant) + !("significant" in row[0] && row[0].significant), ); if (compatibleRow) {