Skip to content

Commit

Permalink
fix: apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Sep 21, 2024
1 parent a372656 commit c0e2248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/workspace/expensifyCard/EmptyCardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type EmptyCardViewProps = {
/** Subtitle of the empty state */
subtitle: string;

/** Whether the header buttons be displayed */
/** Whether the header buttons are displayed */
areHeaderButtonsDisplayed: boolean;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ function WorkspaceExpensifyCardListPage({route, cardsList}: WorkspaceExpensifyCa
const paymentBankAccountID = cardSettings?.paymentBankAccountID ?? 0;
const [bankAccountsList] = useOnyx(ONYXKEYS.BANK_ACCOUNT_LIST);

// TODO: change approvedBy check for more accurate verification status
const isBankAccountVerified = bankAccountsList?.[paymentBankAccountID]?.accountData?.approvedBy === 'Automatic';
const isBankAccountVerified = bankAccountsList?.[paymentBankAccountID]?.accountData?.state === CONST.BANK_ACCOUNT.STATE.OPEN;

const policyCurrency = useMemo(() => policy?.outputCurrency ?? CONST.CURRENCY.USD, [policy]);

Expand Down

0 comments on commit c0e2248

Please sign in to comment.