gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: fix 7098


From: gnunet
Subject: [taler-wallet-core] branch master updated: fix 7098
Date: Fri, 12 Nov 2021 15:51:39 +0100

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

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 377e78e8 fix 7098
377e78e8 is described below

commit 377e78e8543b67c22798479fcf2d2f8d1dae5b28
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Nov 12 11:51:10 2021 -0300

    fix 7098
---
 .../src/pages/home/AuthenticationEditorScreen.tsx           | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git 
a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx 
b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx
index 2da7d52f..91195971 100644
--- a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx
@@ -38,7 +38,6 @@ export function AuthenticationEditorScreen(): VNode {
   }
   const configuredAuthMethods: AuthMethod[] =
     reducer.currentReducerState.authentication_methods ?? [];
-  const haveMethodsConfigured = configuredAuthMethods.length > 0;
 
   function removeByIndex(index: number): void {
     if (reducer)
@@ -105,7 +104,7 @@ export function AuthenticationEditorScreen(): VNode {
             onCancel={cancel}
             description="No providers founds"
             label="Add a provider manually"
-            onConfirm={() => {
+            onConfirm={async () => {
               setManageProvider(selectedMethod);
             }}
           >
@@ -156,9 +155,7 @@ export function AuthenticationEditorScreen(): VNode {
       </div>
     );
   }
-  const errors = !haveMethodsConfigured
-    ? "There is not enough authentication methods."
-    : undefined;
+  const errors = configuredAuthMethods.length < 2 ? "There is not enough 
authentication methods." : undefined;
   const handleNext = async () => {
     const st = reducer.currentReducerState as ReducerStateBackup;
     if ((st.authentication_methods ?? []).length <= 2) {
@@ -188,8 +185,8 @@ export function AuthenticationEditorScreen(): VNode {
               label="Proceed anyway"
               onConfirm={() => reducer.transition("next", {})}
             >
-              You have selected fewer than three authentication methods. We
-              recommend that you add at least three.
+              You have selected fewer than 3 authentication methods. We
+              recommend that you add at least 3.
             </ConfirmModal>
           ) : null}
           {authAvailableSet.size === 0 && (
@@ -198,7 +195,7 @@ export function AuthenticationEditorScreen(): VNode {
               onCancel={() => setNoProvidersAck(true)}
               description="No providers founds"
               label="Add a provider manually"
-              onConfirm={() => {
+              onConfirm={async () => {
                 setManageProvider("");
               }}
             >

-- 
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]