From 0041cf03775c55cc97638c08a8626f3900df18ae Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 15 Mar 2024 17:03:03 +0800 Subject: [PATCH] renaming --- src/components/AddPlaidBankAccount.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AddPlaidBankAccount.tsx b/src/components/AddPlaidBankAccount.tsx index 89e92613f116..4111d9cc8e6f 100644 --- a/src/components/AddPlaidBankAccount.tsx +++ b/src/components/AddPlaidBankAccount.tsx @@ -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); }, []); @@ -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)