From 058d57b400ca086696747da0d5546d2bf83bc139 Mon Sep 17 00:00:00 2001 From: Zach Whelchel Date: Thu, 18 Jan 2024 16:46:58 -0500 Subject: [PATCH] Attempt to make typecheck happy. --- .../src/components/modals/SimpleFinInitialise.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx b/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx index 3d9e62f683b..399e35c283b 100644 --- a/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx +++ b/packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx @@ -41,7 +41,7 @@ export const SimpleFinInitialise = ({ ]); onSuccess(); - if (modalProps != null) { + if (modalProps !== undefined) { modalProps.onClose(); } setIsLoading(false);