Skip to content

Commit

Permalink
Add condition to show Not Found view only when all loading has finished
Browse files Browse the repository at this point in the history
  • Loading branch information
neonbhai committed Jan 7, 2024
1 parent e27bda2 commit 821d6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, pol
);
}

if (_.isEmpty(policy) || !PolicyUtils.isPolicyAdmin(policy)) {
if (!isLoading && (_.isEmpty(policy) || !PolicyUtils.isPolicyAdmin(policy))) {
return (
<ScreenWrapper testID={ReimbursementAccountPage.displayName}>
<FullPageNotFoundView
Expand Down

0 comments on commit 821d6d7

Please sign in to comment.