Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit d4c5e72

Browse files
committed
Use react-native platform to switch between pin or password reset
1 parent 1ee33ed commit d4c5e72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/view/setting.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ const SettingView = ({ store, nav, wallet, autopilot, auth }) => {
7171
<SettingItem
7272
name={Platform.OS === 'web' ? 'Change Password' : 'Change PIN'}
7373
onSelect={() =>
74-
wallet ? wallet.initResetPassword() : auth.initResetPin()
74+
Platform.OS === 'web'
75+
? wallet.initResetPassword()
76+
: auth.initResetPin()
7577
}
7678
arrow
7779
/>

0 commit comments

Comments
 (0)