gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] branch master updated: fix create issue


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated: fix create issue
Date: Mon, 28 Jun 2021 15:41:22 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new 3860d8f  fix create issue
3860d8f is described below

commit 3860d8fd162a019a99f08759856d6b6e8e3985e6
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Jun 28 10:40:55 2021 -0300

    fix create issue
---
 packages/frontend/src/paths/admin/create/CreatePage.tsx | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/packages/frontend/src/paths/admin/create/CreatePage.tsx 
b/packages/frontend/src/paths/admin/create/CreatePage.tsx
index ff7e6d6..dd65069 100644
--- a/packages/frontend/src/paths/admin/create/CreatePage.tsx
+++ b/packages/frontend/src/paths/admin/create/CreatePage.tsx
@@ -62,11 +62,6 @@ export function CreatePage({ onCreate, onBack, forceId }: 
Props): VNode {
   const errors: FormErrors<Entity> = {
     id: !value.id ? i18n`required` : undefined,
     name: !value.name ? i18n`required` : undefined,
-    auth: {
-      method: value.auth?.method === 'token' && !value.auth?.token ? 
i18n`token can't be empty` : (
-        value.auth?.method !== 'external' ? i18n`access token is not defined` 
: undefined
-      )
-    },
     payto_uris:
       !value.payto_uris || !value.payto_uris.length ? i18n`required` : (
         undefinedIfEmpty(value.payto_uris.map(p => {
@@ -112,6 +107,8 @@ export function CreatePage({ onCreate, onBack, forceId }: 
Props): VNode {
     const newToken = value.auth_token;
     value.auth_token = undefined;
     value.auth = newToken === null || newToken === undefined ? { method: 
"external" } : { method: "token", token: `secret-token:${newToken}` };
+    if (!value.address) value.address = {} 
+    if (!value.jurisdiction) value.jurisdiction = {} 
     // remove above use conversion
     // schema.validateSync(value, { abortEarly: false })
     return onCreate(value as Entity);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]