Skip to content

Commit c6583f1

Browse files
authored
Merge pull request Expensify#66270 from mkzie2/mkzie2-issue/65647
fix: user can change the WS currency that is already connected to the USD bank account
2 parents 64c9c3a + 9da9aac commit c6583f1

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/pages/workspace/WorkspacePageWithSections.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function WorkspacePageWithSections({
139139

140140
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
141141
const isLoading = (reimbursementAccount?.isLoading || isPageLoading) ?? true;
142-
const achState = reimbursementAccount?.achData?.state;
142+
const achState = policy?.achAccount?.state ?? reimbursementAccount?.achData?.state;
143143
const isUsingECard = account?.isUsingExpensifyCard ?? false;
144144
const hasVBA = achState === BankAccount.STATE.OPEN;
145145
const content = typeof children === 'function' ? children(hasVBA, policyID, isUsingECard) : children;

src/types/onyx/Policy.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,6 +1433,9 @@ type ACHAccount = {
14331433

14341434
/** E-mail of the reimburser */
14351435
reimburser: string;
1436+
1437+
/** Bank account state */
1438+
state?: string;
14361439
};
14371440

14381441
/** Prohibited expense types */

0 commit comments

Comments
 (0)