From fd3278f4c681fb60c6f791ab6fa066f9a524478a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 17 Oct 2022 10:18:17 -0300 Subject: making test pass --- packages/taler-wallet-webextension/src/cta/Withdraw/state.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/state.ts') 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, }; } -- cgit v1.2.3