Skip to content

Commit

Permalink
Attempt to make typecheck happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwhelchel committed Jan 18, 2024
1 parent 92959c4 commit 058d57b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const SimpleFinInitialise = ({
]);

onSuccess();
if (modalProps != null) {
if (modalProps !== undefined) {
modalProps.onClose();

Check failure on line 45 in packages/desktop-client/src/components/modals/SimpleFinInitialise.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Cannot invoke an object which is possibly 'undefined'.
}
setIsLoading(false);
Expand Down

0 comments on commit 058d57b

Please sign in to comment.