aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-10-23 15:49:13 -0300
committerSebastian <sebasjm@gmail.com>2023-10-23 15:49:35 -0300
commitc66f06eb73e53a8804b8c2b36ff45972836c633c (patch)
tree18461a0e29124326ccb70331971d5914f3ff56b3 /packages/demobank-ui
parent2512665e9462690162a5bae5fab3337217943269 (diff)
downloadwallet-core-c66f06eb73e53a8804b8c2b36ff45972836c633c.tar.xz
update conversion rate info, added test-bank-api in taler harness
Diffstat (limited to 'packages/demobank-ui')
-rw-r--r--packages/demobank-ui/src/pages/UpdateAccountPassword.tsx6
-rw-r--r--packages/demobank-ui/src/pages/business/CreateCashout.tsx14
2 files changed, 11 insertions, 9 deletions
diff --git a/packages/demobank-ui/src/pages/UpdateAccountPassword.tsx b/packages/demobank-ui/src/pages/UpdateAccountPassword.tsx
index ef3737e81..f23285528 100644
--- a/packages/demobank-ui/src/pages/UpdateAccountPassword.tsx
+++ b/packages/demobank-ui/src/pages/UpdateAccountPassword.tsx
@@ -47,7 +47,7 @@ export function UpdateAccountPassword({
if (!!errors || !password || !token) return;
await withRuntimeErrorHandling(i18n, async () => {
const resp = await api.updatePassword({ username: accountName, token }, {
- // old_password: current,
+ old_password: current,
new_password: password,
});
if (resp.type === "ok") {
@@ -61,7 +61,9 @@ export function UpdateAccountPassword({
})
case "no-rights": return notify({
type: "error",
- title: i18n.str`This user have no right on to change the password.`
+ title: current ?
+ i18n.str`This user have no right on to change the password.` :
+ i18n.str`This user have no right on to change the password or the old password doesn't match.`
})
case "not-found": return notify({
type: "error",
diff --git a/packages/demobank-ui/src/pages/business/CreateCashout.tsx b/packages/demobank-ui/src/pages/business/CreateCashout.tsx
index 5595d3b51..a3a48eed4 100644
--- a/packages/demobank-ui/src/pages/business/CreateCashout.tsx
+++ b/packages/demobank-ui/src/pages/business/CreateCashout.tsx
@@ -110,14 +110,14 @@ export function CreateCashout({
}
}
- if (resultRatios.type === "fail") {
- switch (resultRatios.case) {
- case "not-supported": return <div>cashout operations are not supported</div>
- default: assertUnreachable(resultRatios.case)
- }
- }
+ // if (resultRatios.type === "fail") {
+ // switch (resultRatios.case) {
+ // case "not-supported": return <div>cashout operations are not supported</div>
+ // default: assertUnreachable(resultRatios.case)
+ // }
+ // }
- const ratio = resultRatios.body
+ // const ratio = resultRatios.body
const account = {
balance: Amounts.parseOrThrow(resultAccount.body.balance.amount),