Skip to content

Commit

Permalink
Add TODO and explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Sep 11, 2024
1 parent 83283ce commit 1a2c742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/workspace/expensifyCard/WorkspaceCardsListLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function WorkspaceCardsListLabel({type, value, style}: WorkspaceCardsListLabelPr

const isConnectedWithPlaid = useMemo(() => {
const bankAccountData = bankAccountList?.[paymentBankAccountID ?? 0]?.accountData;

// TODO: remove the extra check when plaidAccountID storing is aligned in https://github.com/Expensify/App/issues/47944
// Right after adding a bank account plaidAccountID is stored inside the accountData and not in the additionalData
return !!bankAccountData?.plaidAccountID || !!bankAccountData?.additionalData?.plaidAccountID;
}, [bankAccountList, paymentBankAccountID]);

Expand Down

0 comments on commit 1a2c742

Please sign in to comment.