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);