Skip to content

Commit e219999

Browse files
Merge pull request Expensify#78824 from ryntgh/issue-78514
Fix: Delete banner still display after clicking on the Got it button in Workspace Overview
2 parents 203738a + 7db2226 commit e219999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/workspace/WorkspaceOverviewPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ function WorkspaceOverviewPage({policyDraft, policy: policyProp, route}: Workspa
283283
goBackFromInvalidPolicy();
284284
return;
285285
}
286+
setIsDeleteModalOpen(false);
286287
setIsDeleteWorkspaceErrorModalOpen(true);
287288
}, [isFocused, isPendingDelete, prevIsPendingDelete, policyLastErrorMessage]);
288289

0 commit comments

Comments
 (0)