diff options
author | Sebastian <sebasjm@gmail.com> | 2023-03-10 01:27:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-03-10 01:27:31 -0300 |
commit | 867d2ca76b2ca8903b2263a68243899749de7011 (patch) | |
tree | 5abb027f7976a8694d29e5be4f8d9e8528bf1a0c /packages/taler-wallet-webextension/src/cta/Payment | |
parent | f40487806304dbaafa74544d5a8f74ab56569044 (diff) | |
download | wallet-core-867d2ca76b2ca8903b2263a68243899749de7011.tar.xz |
fix encoded uri, add pay template cta
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Payment')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Payment/index.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Payment/test.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/index.ts b/packages/taler-wallet-webextension/src/cta/Payment/index.ts index e844c1706..c9bead89c 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/index.ts +++ b/packages/taler-wallet-webextension/src/cta/Payment/index.ts @@ -30,7 +30,7 @@ import { useComponentState } from "./state.js"; import { BaseView } from "./views.js"; export interface Props { - talerPayUri?: string; + talerPayUri: string; goToWalletManualWithdraw: (amount?: string) => Promise<void>; cancel: () => Promise<void>; onSuccess: (tx: string) => Promise<void>; diff --git a/packages/taler-wallet-webextension/src/cta/Payment/test.ts b/packages/taler-wallet-webextension/src/cta/Payment/test.ts index e92eb78c0..f4b63955d 100644 --- a/packages/taler-wallet-webextension/src/cta/Payment/test.ts +++ b/packages/taler-wallet-webextension/src/cta/Payment/test.ts @@ -41,7 +41,7 @@ describe("Payment CTA states", () => { it("should tell the user that the URI is missing", async () => { const { handler, TestingContext } = createWalletApiMock(); const props = { - talerPayUri: undefined, + talerPayUri: "", cancel: nullFunction, goToWalletManualWithdraw: nullFunction, onSuccess: nullFunction, |