diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-16 10:48:46 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-16 10:49:44 -0300 |
commit | 99f3a3b33c0284d35f2fe8be704b092048db90cc (patch) | |
tree | 8bdb5ba09d22307a9706fb89573a76e9cb9fede5 /packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts | |
parent | fc77825639c5da6d4c9a209ad8cf6df77c96fbae (diff) | |
download | wallet-core-99f3a3b33c0284d35f2fe8be704b092048db90cc.tar.xz |
fix nicer error (from email: "wallet ui error")
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts b/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts index b9257215f..75910549f 100644 --- a/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts +++ b/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts @@ -14,7 +14,7 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Amounts } from "@gnu-taler/taler-util"; +import { Amounts, PreparePayResult } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { useState } from "preact/hooks"; import { alertFromError, useAlertContext } from "../../context/alert.js"; @@ -54,7 +54,7 @@ export function useComponentState({ const hook = useAsyncAsHook(async () => { if (!talerTemplateUri) throw Error("ERROR_NO-URI-FOR-PAYMENT-TEMPLATE"); - let payStatus; + let payStatus: PreparePayResult | undefined = undefined; if (!amountParam && !summaryParam) { payStatus = await api.wallet.call( WalletApiOperation.PreparePayForTemplate, |