From a324ba367a75fc790f9456e479e7bbf22abe00aa Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 24 Jan 2024 17:48:00 -0300 Subject: fixes #8265 --- packages/merchant-backoffice-ui/package.json | 1 + packages/merchant-backoffice-ui/src/Application.tsx | 2 +- .../src/paths/instance/orders/create/CreatePage.tsx | 2 +- .../src/paths/instance/token/DetailPage.tsx | 12 ++++++------ .../src/paths/instance/webhooks/create/CreatePage.tsx | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) (limited to 'packages/merchant-backoffice-ui') diff --git a/packages/merchant-backoffice-ui/package.json b/packages/merchant-backoffice-ui/package.json index 74a9a823a..84ea483d8 100644 --- a/packages/merchant-backoffice-ui/package.json +++ b/packages/merchant-backoffice-ui/package.json @@ -5,6 +5,7 @@ "license": "AGPL-3.0-or-later", "type": "module", "scripts": { + "clean": "rm -rf dist tsconfig.tsbuildinfo", "build": "./build.mjs", "check": "tsc", "compile": "tsc && ./build.mjs", diff --git a/packages/merchant-backoffice-ui/src/Application.tsx b/packages/merchant-backoffice-ui/src/Application.tsx index 27ae26de5..e78a6fc0b 100644 --- a/packages/merchant-backoffice-ui/src/Application.tsx +++ b/packages/merchant-backoffice-ui/src/Application.tsx @@ -94,7 +94,7 @@ function ApplicationStatusRoutes(): VNode {
- + {!hasToken && { if (hasToken) { - const ot = `secret-token:${form.old_token}` as AccessToken; - onClearToken(ot) + const oldToken = `secret-token:${form.old_token}` as AccessToken; + onClearToken(oldToken) } else { onClearToken(undefined) } diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx index 434d69412..bfa2a883e 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/create/CreatePage.tsx @@ -120,7 +120,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode {

The text below support mustache template engine. Any string between

{{
and
}}
will - be replaced with replaced with the value of the correspoding variable. + be replaced with replaced with the value of the corresponding variable.

For example

{{contract_terms.amount}}
will be replaced -- cgit v1.2.3