summaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/Routing.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/Routing.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/Routing.tsx11
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/merchant-backoffice-ui/src/Routing.tsx b/packages/merchant-backoffice-ui/src/Routing.tsx
index 4ed5850e7..c30b1912a 100644
--- a/packages/merchant-backoffice-ui/src/Routing.tsx
+++ b/packages/merchant-backoffice-ui/src/Routing.tsx
@@ -19,7 +19,7 @@
* @author Sebastian Javier Marchano (sebasjm)
*/
-import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util";
+import { AbsoluteTime, TalerErrorDetail, TranslatedString } from "@gnu-taler/taler-util";
import {
ErrorType,
HttpError,
@@ -35,7 +35,6 @@ import {
NotConnectedAppMenu,
NotificationCard,
} from "./components/menu/index.js";
-import { MerchantBackend } from "./declaration.js";
import { useInstanceBankAccounts } from "./hooks/bank.js";
import { useInstanceKYCDetails } from "./hooks/instance.js";
import { usePreference } from "./hooks/preference.js";
@@ -164,7 +163,7 @@ export function Routing(_p: Props): VNode {
function ServerErrorRedirectTo(to: InstancePaths | AdminPaths) {
return function ServerErrorRedirectToImpl(
- error: HttpError<MerchantBackend.ErrorDetail>,
+ error: HttpError<TalerErrorDetail>,
) {
if (error.type === ErrorType.TIMEOUT) {
setGlobalNotification({
@@ -179,7 +178,7 @@ export function Routing(_p: Props): VNode {
description: i18n.str`Diagnostic from ${error.info.url} is '${error.message}'`,
details:
error.type === ErrorType.CLIENT || error.type === ErrorType.SERVER
- ? error.payload.detail
+ ? error.payload.hint
: undefined,
type: "ERROR",
to,
@@ -679,7 +678,7 @@ function AdminInstanceUpdatePage({
<InstanceAdminUpdatePage
{...rest}
instanceId={id}
- onLoadError={(error: HttpError<MerchantBackend.ErrorDetail>) => {
+ onLoadError={(error: HttpError<TalerErrorDetail>) => {
const notif =
error.type === ErrorType.TIMEOUT
? {
@@ -693,7 +692,7 @@ function AdminInstanceUpdatePage({
details:
error.type === ErrorType.CLIENT ||
error.type === ErrorType.SERVER
- ? error.payload.detail
+ ? error.payload.hint
: undefined,
type: "ERROR" as const,
};