commit c53b724c936d79b1225a0bbe6588a88bc46d3f58
parent 7869e72c5fc7d12aca4822c23cbed2d076d3fc87
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 22 Oct 2024 12:34:50 -0300
fix broken build
Diffstat:
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/accounts/update/UpdatePage.tsx
@@ -42,7 +42,7 @@ import { InputPaytoForm } from "../../../../components/form/InputPaytoForm.js";
import { InputSelector } from "../../../../components/form/InputSelector.js";
import { WithId } from "../../../../declaration.js";
import { undefinedIfEmpty } from "../../../../utils/table.js";
-import { testRevenueAPI } from "../create/index.js";
+import { testRevenueAPI, TestRevenueErrorType } from "../create/index.js";
import { InputToggle } from "../../../../components/form/InputToggle.js";
import {
CompareAccountsModal,
@@ -217,6 +217,16 @@ export function UpdatePage({
});
return;
}
+ case TestRevenueErrorType.CANT_VALIDATE: {
+ setTestError(
+ i18n.str`Request succeeded but server didn't reply the 'credit_account' so we can't check that the account is the same.`,
+ );
+ setState({
+ ...state,
+ verified: undefined,
+ });
+ return;
+ }
default: {
assertUnreachable(resp);
}
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/stories.tsx b/packages/taler-wallet-webextension/src/cta/Payment/stories.tsx
@@ -315,6 +315,7 @@ export const PaymentPossible = tests.createExample(BaseView, {
talerUri: "taler://pay/..",
amountEffective: "USD:10" as AmountString,
amountRaw: "USD:10" as AmountString,
+ scopes: [],
contractTerms: {
nonce: "123213123",
@@ -355,6 +356,7 @@ export const PaymentPossibleWithFee = tests.createExample(BaseView, {
talerUri: "taler://pay/..",
amountEffective: "USD:10.20" as AmountString,
amountRaw: "USD:10" as AmountString,
+ scopes: [],
contractTerms: {
nonce: "123213123",
@@ -392,6 +394,7 @@ export const TicketWithAProductList = tests.createExample(BaseView, {
talerUri: "taler://pay/..",
amountEffective: "USD:10.20" as AmountString,
amountRaw: "USD:10" as AmountString,
+ scopes: [],
contractTerms: {
nonce: "123213123",
@@ -448,6 +451,8 @@ export const TicketWithShipping = tests.createExample(BaseView, {
talerUri: "taler://pay/..",
amountEffective: "USD:10.20" as AmountString,
amountRaw: "USD:10" as AmountString,
+ scopes: [],
+
contractTerms: {
nonce: "123213123",