react-native-fingerprint-android icon indicating copy to clipboard operation
react-native-fingerprint-android copied to clipboard

In case of error there should be return statement

Open MikolajPokrywka opened this issue 5 years ago • 0 comments

In my humble opinion in example: in code fragment:

} catch(error) {
        Toast.show(`Authentication aborted: ${error.message}`, Toast.SHORT);
    }

there should be return statement:

} catch (error) {
      console.log(error);
      Toast.show(`Authentication aborted: ${error.message}`, Toast.SHORT);
      return;
    }

Bcs when i was getting [Error: Too many attempts. Try again later.] This code had executed: Toast.show('Auth successful!', Toast.SHORT);

MikolajPokrywka avatar Jan 04 '21 22:01 MikolajPokrywka