Skip to content

Commit

Permalink
remove unnecessary null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Apr 17, 2024
1 parent cceb739 commit 6976daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ function ReimbursementAccountPage({
}, []); // The empty dependency array ensures this runs only once after the component mounts.

useEffect(() => {
if (typeof reimbursementAccount?.isLoading !== 'boolean' || reimbursementAccount?.isLoading === prevIsReimbursementAccountLoading) {
if (typeof reimbursementAccount?.isLoading !== 'boolean' || reimbursementAccount.isLoading === prevIsReimbursementAccountLoading) {
return;
}
setIsReimbursementAccountLoading(reimbursementAccount?.isLoading);
setIsReimbursementAccountLoading(reimbursementAccount.isLoading);
}, [prevIsReimbursementAccountLoading, reimbursementAccount?.isLoading]);

useEffect(
Expand Down

0 comments on commit 6976daf

Please sign in to comment.