Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Mar 15, 2024
1 parent 1da9eab commit 0041cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AddPlaidBankAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function AddPlaidBankAccount({
onInputChange(plaidAccountID);
};

const onError = useCallback((error: ErrorEvent | null) => {
const handlePlaidError = useCallback((error: ErrorEvent | null) => {
Log.hmmm('[PlaidLink] Error: ', error?.message);
}, []);

Expand All @@ -208,7 +208,7 @@ function AddPlaidBankAccount({
Log.info('[PlaidLink] Success!');
BankAccounts.openPlaidBankAccountSelector(publicToken, metadata?.institution?.name ?? '', allowDebit, bankAccountID);
}}
onError={onError}
onError={handlePlaidError}
onEvent={(event, metadata) => {
BankAccounts.setPlaidEvent(event);
// Handle Plaid login errors (will potentially reset plaid token and item depending on the error)
Expand Down

0 comments on commit 0041cf0

Please sign in to comment.