diff options
author | Sebastian <sebasjm@gmail.com> | 2022-10-17 10:18:17 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-10-17 10:18:17 -0300 |
commit | fd3278f4c681fb60c6f791ab6fa066f9a524478a (patch) | |
tree | 09dfe350b84d1c79a6133941dcff383553370730 /packages/taler-wallet-webextension/src/cta/Withdraw/state.ts | |
parent | e5e469575bf97433197ed406717c214dfcb4ce5e (diff) | |
download | wallet-core-fd3278f4c681fb60c6f791ab6fa066f9a524478a.tar.xz |
making test pass
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/state.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw/state.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts b/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts index f4aea9cd6..c542d8aae 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts +++ b/packages/taler-wallet-webextension/src/cta/Withdraw/state.ts @@ -43,7 +43,7 @@ export function useComponentStateFromParams( if (uriInfoHook.hasError) { return { - status: "loading-error", + status: "uri-error", error: uriInfoHook, }; } @@ -110,7 +110,7 @@ export function useComponentStateFromURI( if (uriInfoHook.hasError) { return { - status: "loading-error", + status: "uri-error", error: uriInfoHook, }; } @@ -180,6 +180,7 @@ function exchangeSelectionState( const tosNeedToBeAccepted = currentExchange.tosStatus == ExchangeTosStatus.New || currentExchange.tosStatus == ExchangeTosStatus.Changed; + /** * With the exchange and amount, ask the wallet the information * about the withdrawal @@ -232,7 +233,7 @@ function exchangeSelectionState( } if (amountHook.hasError) { return { - status: "loading-info", + status: "amount-error", error: amountHook, }; } |