commit a98fb98fa7d6f8d99e578b7f9c705530253f5c56
parent 19cabc181a232203c00054e0be34bb805b989722
Author: Sebastian <sebasjm@taler-systems.com>
Date: Wed, 22 Jul 2026 15:31:50 -0300
handle keys not found
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/wallet/AddExchange/index.ts b/packages/taler-wallet-webextension/src/wallet/AddExchange/index.ts
@@ -15,6 +15,7 @@
*/
import {
+ HttpStatusCode,
OperationAlternative,
OperationFail,
OperationOk,
@@ -75,7 +76,7 @@ export namespace State {
| OperationOk<TalerExchangeApi.ExchangeKeysResponse>
| OperationAlternative<"invalid-version", string>
| OperationAlternative<"invalid-currency", string>
- | OperationFail<"not-found">
+ | OperationFail<HttpStatusCode.NotFound>
| OperationFail<"already-active">
| OperationFail<"invalid-protocol">
| undefined;
diff --git a/packages/taler-wallet-webextension/src/wallet/AddExchange/views.tsx b/packages/taler-wallet-webextension/src/wallet/AddExchange/views.tsx
@@ -27,7 +27,7 @@ import {
import { TermsOfService } from "../../components/TermsOfService/index.js";
import { Button } from "../../mui/Button.js";
import { State } from "./index.js";
-import { assertUnreachable } from "@gnu-taler/taler-util";
+import { assertUnreachable, HttpStatusCode } from "@gnu-taler/taler-util";
export function VerifyView({
expectedCurrency,
@@ -111,7 +111,7 @@ export function VerifyView({
</WarningBox>
);
}
- case "not-found": {
+ case HttpStatusCode.NotFound: {
return (
<WarningBox>
<i18n.Translate>