fix: consumable times

This commit is contained in:
TrèsAbhi committed 2026-03-31 16:51:07 -05:00
1 parent e2f50871ec
commit 7419b3f29e
2 files changed
+3 -5

No files matched your search

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