From 7419b3f29efc1d926d14b4c2d7bb2dd30ad686a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 31 Mar 2026 16:51:07 -0500 Subject: [PATCH] fix: consumable times --- packages/website/src/components/ConsumablesManager.tsx | 5 ++--- packages/website/src/pages/[...locale]/index.astro | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) 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) {