From 0e4c4ecf9a2a0f5b6cf87d04d9526d722842cc82 Mon Sep 17 00:00:00 2001 From: Wolfger Schramm Date: Sat, 28 Sep 2024 18:55:12 +0200 Subject: [PATCH] fix lintings --- packages/twopoint5d-r3f/src/components/GetStage2D.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twopoint5d-r3f/src/components/GetStage2D.tsx b/packages/twopoint5d-r3f/src/components/GetStage2D.tsx index fe69004d..0afea9b1 100644 --- a/packages/twopoint5d-r3f/src/components/GetStage2D.tsx +++ b/packages/twopoint5d-r3f/src/components/GetStage2D.tsx @@ -16,7 +16,7 @@ export function GetStage2D({name, children, fallback}: GetStage2DProps) { const stageNames = Array.isArray(name) ? name : [name]; const stages = stageNames.map((stageName) => useStage2D(stageName)); - return stages.every((stage) => stage != null) ? children(...(stages as Stage2D[])) : fallback ?? null; + return stages.every((stage) => stage != null) ? children(...(stages as Stage2D[])) : (fallback ?? null); } GetStage2D.displayName = 'GetStage2D';