diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance')
3 files changed, 8 insertions, 8 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx index fbfd023c1..62ceaa24b 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/orders/create/CreatePage.tsx @@ -329,7 +329,7 @@ export function CreatePage({ // if there is no default pay deadline const noDefault_payDeadline = !instance_default.payments || !instance_default.payments.pay_deadline - // and there is no defailt wire deadline + // and there is no default wire deadline const noDefault_wireDeadline = !instance_default.payments || !instance_default.payments.wire_transfer_deadline // user required to set the taler options const requiresSomeTalerOptions = noDefault_payDeadline || noDefault_wireDeadline diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx index d22a9e4d4..549e7581f 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/token/DetailPage.tsx @@ -71,9 +71,9 @@ export function DetailPage({ instanceId, hasToken, onBack, onNewToken, onClearTo async function submitForm() { if (hasErrors) return; - const ot = hasToken ? `secret-token:${form.old_token}` as AccessToken : undefined; - const nt = `secret-token:${form.new_token}` as AccessToken; - onNewToken(ot, nt) + const oldToken = hasToken ? `secret-token:${form.old_token}` as AccessToken : undefined; + const newToken = `secret-token:${form.new_token}` as AccessToken; + onNewToken(oldToken, newToken) } return ( @@ -93,7 +93,7 @@ export function DetailPage({ instanceId, hasToken, onBack, onNewToken, onClearTo </div> </section> <hr /> - + {!hasToken && <NotificationCard notification={{ @@ -127,8 +127,8 @@ export function DetailPage({ instanceId, hasToken, onBack, onNewToken, onClearTo class="button" onClick={() => { 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 { <p> The text below support <a target="_blank" rel="noreferrer" href="https://mustache.github.io/mustache.5.html">mustache</a> template engine. Any string between <pre style={{ display: "inline", padding: 0 }}>{{</pre> and <pre style={{ display: "inline", padding: 0 }}>}}</pre> will - be replaced with replaced with the value of the correspoding variable. + be replaced with replaced with the value of the corresponding variable. </p> <p> For example <pre style={{ display: "inline", padding: 0 }}>{{contract_terms.amount}}</pre> will be replaced |