From ca0851186f461f33c2dbdc4b99194905d9e1f323 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 14 Jan 2024 16:29:03 -0300 Subject: fix wording, missing strings --- .../demobank-ui/src/pages/WalletWithdrawForm.tsx | 2 +- .../demobank-ui/src/pages/WithdrawalQRCode.tsx | 22 ++++++++++++++-------- .../src/pages/business/CreateCashout.tsx | 2 +- 3 files changed, 16 insertions(+), 10 deletions(-) (limited to 'packages/demobank-ui/src/pages') diff --git a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx index 70b83fa82..93b3b87a7 100644 --- a/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx +++ b/packages/demobank-ui/src/pages/WalletWithdrawForm.tsx @@ -66,7 +66,7 @@ function OldWithdrawalForm({ goToConfirmOperation, limit, onCancel, focus }: { return - To complete or cancel the operation in this page + Complete or cancel the operation in this page } diff --git a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx index c9384e945..787eeca52 100644 --- a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx @@ -68,7 +68,6 @@ export function WithdrawalQRCode({ const { body: data } = result; if (data.status === "aborted") { - // FIXME: remove exchange word return

{i18n.str`Operation aborted`}

@@ -143,19 +142,26 @@ export function WithdrawalQRCode({ ); } - if (!data.selected_reserve_pub) { + const account = !data.selected_exchange_account ? undefined : parsePaytoUri(data.selected_exchange_account) + + if (!data.selected_reserve_pub && account) { return - The wallet confirmation is partially confirmed. The Taler Exchange operator is selected but no withdrawal identification found. + title={i18n.str`The operation is marked as 'selected' but some step in the withdrawal failed`} > + The account is selected but no withdrawal identification found. } - const account = !data.selected_exchange_account ? undefined : parsePaytoUri(data.selected_exchange_account) + if (!account && data.selected_reserve_pub) { + return + There is a withdrawal identification but no account has been selected or the selected account is invalid. + + } - if (!account) { + if (!account || !data.selected_reserve_pub) { return - The Taler Exchange operator is selected but the Taler Exchange operator account is missing or invalid. + title={i18n.str`The operation is marked as 'selected' but some step in the withdrawal failed`}> + No withdrawal ID found and no account has been selected or the selected account is invalid. } diff --git a/packages/demobank-ui/src/pages/business/CreateCashout.tsx b/packages/demobank-ui/src/pages/business/CreateCashout.tsx index 14e151ae6..f9962fbde 100644 --- a/packages/demobank-ui/src/pages/business/CreateCashout.tsx +++ b/packages/demobank-ui/src/pages/business/CreateCashout.tsx @@ -457,7 +457,7 @@ export function CreateCashout({ class="block text-sm font-medium leading-6 text-gray-900" for="channel" > - {i18n.str`Second fac`} + {i18n.str`Second factor authentication`}
-- cgit v1.2.3