diff --git a/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx b/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx index a7f1a0b85..142d4dba4 100644 --- a/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx +++ b/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx @@ -1,7 +1,12 @@ import { Flex } from '@radix-ui/themes'; import { ShotDisplayCard } from '../../../../../components/Armor/components/ShotDisplayCard'; +import * as TankEphemeral from '../../../../../stores/tankopediaEphemeral'; export function ShotDisplaySection() { + const shot = TankEphemeral.use((state) => state.shot); + + if (!shot) return null; + return ( - + ); }