From 46937693a0532f832219853d2337e7fbdc2c288a Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 11 Jul 2026 17:09:38 -0500 Subject: [PATCH] implement nullable refs in a type-safe manner --- .../components/Armor/components/ShotDisplay.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/website/src/components/Armor/components/ShotDisplay.tsx b/packages/website/src/components/Armor/components/ShotDisplay.tsx index 3a4c39b63..ab24a95ad 100644 --- a/packages/website/src/components/Armor/components/ShotDisplay.tsx +++ b/packages/website/src/components/Armor/components/ShotDisplay.tsx @@ -42,10 +42,10 @@ const TRACER_THIN = TRACER_THICK / 2; export function ShotDisplay() { const shot = Tankopedia.use((state) => state.shot); - const inTracer = useRef(null!); - const outTracer = useRef(null!); - const splashRadiusWrapper = useRef(null!); - const splashRadiusMaterial = useRef(null!); + const inTracer = useRef(null); + const outTracer = useRef(null); + const splashRadiusWrapper = useRef(null); + const splashRadiusMaterial = useRef(null); const { locale } = useLocale(); useEffect(() => { @@ -255,11 +255,11 @@ export function ShotDisplay() { } interface AnimatorProps { - inTracer: RefObject; - outTracer: RefObject; + inTracer: RefObject; + outTracer: RefObject; - splashRadiusWrapper: RefObject; - splashRadiusMaterial: RefObject; + splashRadiusWrapper: RefObject; + splashRadiusMaterial: RefObject; inLength: number; outLength: number;