From 9e0d5b9dc20dd6eb3453d7a494e05ff6ec37d300 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 15 Mar 2024 14:55:45 +0800 Subject: [PATCH 1/3] add missing param --- src/libs/actions/Plaid.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/Plaid.ts b/src/libs/actions/Plaid.ts index 78bc91618215..7f63b3920e01 100644 --- a/src/libs/actions/Plaid.ts +++ b/src/libs/actions/Plaid.ts @@ -11,10 +11,11 @@ import ONYXKEYS from '@src/ONYXKEYS'; */ function openPlaidBankLogin(allowDebit: boolean, bankAccountID: number) { // redirect_uri needs to be in kebab case convention because that's how it's passed to the backend - const {redirectURI} = getPlaidLinkTokenParameters(); + const {redirectURI, androidPackage} = getPlaidLinkTokenParameters(); const params: OpenPlaidBankLoginParams = { redirectURI, + androidPackage, allowDebit, bankAccountID, }; From fe113e752c2f848efcdb7a8217aa2cf1db482a82 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 15 Mar 2024 14:55:52 +0800 Subject: [PATCH 2/3] update type --- src/libs/API/parameters/OpenPlaidBankLoginParams.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/API/parameters/OpenPlaidBankLoginParams.ts b/src/libs/API/parameters/OpenPlaidBankLoginParams.ts index f76e05423d03..c72154b0e9e7 100644 --- a/src/libs/API/parameters/OpenPlaidBankLoginParams.ts +++ b/src/libs/API/parameters/OpenPlaidBankLoginParams.ts @@ -1,5 +1,6 @@ type OpenPlaidBankLoginParams = { redirectURI: string | undefined; + androidPackage?: string, allowDebit: boolean; bankAccountID: number; }; From 9f27106786b6b12381ba9afdc9bc0e813c1e889c Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 15 Mar 2024 15:06:18 +0800 Subject: [PATCH 3/3] prettier --- src/libs/API/parameters/OpenPlaidBankLoginParams.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/API/parameters/OpenPlaidBankLoginParams.ts b/src/libs/API/parameters/OpenPlaidBankLoginParams.ts index c72154b0e9e7..d60596eeb08f 100644 --- a/src/libs/API/parameters/OpenPlaidBankLoginParams.ts +++ b/src/libs/API/parameters/OpenPlaidBankLoginParams.ts @@ -1,6 +1,6 @@ type OpenPlaidBankLoginParams = { redirectURI: string | undefined; - androidPackage?: string, + androidPackage?: string; allowDebit: boolean; bankAccountID: number; };