Skip to content

Commit

Permalink
Merge pull request #13 from tahzeer/1.0.0
Browse files Browse the repository at this point in the history
Added new fa_type values
  • Loading branch information
venky-ganapathy authored Jan 9, 2025
2 parents d51e0da + 82f19eb commit 5864044
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/app/components/get-fa-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function GetFaBox() {
<div className="w-full border-b-2 border-orange-200 border-opacity-100 p-2 flex items-start space-x-4 mb-4"></div>
</div>
<>
{getFaResult.fa_type === "bank" && (
{getFaResult.fa_type === "BANK_ACCOUNT" && (
<>
<li className="border-b-2 border-orange-200 border-opacity-100 p-2 flex items-start space-x-4">
<div className="flex flex-row">
Expand Down Expand Up @@ -191,7 +191,7 @@ export default function GetFaBox() {
</li>
</>
)}
{getFaResult.fa_type === "mobile_wallet_provider" && (
{getFaResult.fa_type === "MOBILE_WALLET" && (
<>
<li className="border-b-2 border-orange-200 border-opacity-100 p-2 flex items-start space-x-4">
<div className="flex flex-row">
Expand Down Expand Up @@ -229,7 +229,7 @@ export default function GetFaBox() {
</li>
</>
)}
{getFaResult.fa_type === "email_wallet_provider" && (
{getFaResult.fa_type === "EMAIL_WALLET" && (
<>
<li className="border-b-2 border-orange-200 border-opacity-100 p-2 flex items-start space-x-4">
<div className="flex flex-row">
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/update-fa-box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,21 +215,21 @@ export default function UpdateFaBox() {
return;
}
if (formData.choices[0].key == "Bank") {
finalData.fa_type = "bank";
finalData.fa_type = "BANK_ACCOUNT";
finalData.strategy_id = formData.choices[0].strategy;
finalData.bank_name = formData.choices[0].value;
finalData.bank_code = formData.choices[0].code;
finalData.branch_name = formData.choices[1].value;
finalData.branch_code = formData.choices[1].code;
finalData.account_number = formData.choices[2].value;
} else if (formData.choices[0].key == "Mobile Wallet") {
finalData.fa_type = "mobile_wallet_provider";
finalData.fa_type = "MOBILE_WALLET";
finalData.wallet_provider_name = formData.choices[0].value;
finalData.strategy_id = formData.choices[0].strategy;
finalData.wallet_provider_code = formData.choices[0].code;
finalData.mobile_number = formData.choices[1].value;
} else if (formData.choices[0].key == "Email Wallet") {
finalData.fa_type = "email_wallet_provider";
finalData.fa_type = "EMAIL_WALLET";
finalData.wallet_provider_name = formData.choices[0].value;
finalData.strategy_id = formData.choices[0].strategy;
finalData.wallet_provider_code = formData.choices[0].code;
Expand Down

0 comments on commit 5864044

Please sign in to comment.