Fixed pin reset error if user no auth

This commit is contained in:
Mustafa Buyukcelebi 2019-01-09 11:57:17 +03:00
parent b12623336f
commit 8e63a89000

View File

@ -37,6 +37,7 @@ class SettingsScreen extends PureComponent {
isDarkTheme,
serverList,
intl,
isLoggedIn,
} = this.props;
return (
@ -97,17 +98,19 @@ class SettingsScreen extends PureComponent {
isOn={isNotificationOpen}
handleOnChange={handleOnChange}
/>
<SettingsItem
title={intl.formatMessage({
id: 'settings.pincode',
})}
text={intl.formatMessage({
id: 'settings.reset',
})}
type="button"
actionType="pincode"
handleOnChange={handleOnChange}
/>
{!!isLoggedIn && (
<SettingsItem
title={intl.formatMessage({
id: 'settings.pincode',
})}
text={intl.formatMessage({
id: 'settings.reset',
})}
type="button"
actionType="pincode"
handleOnChange={handleOnChange}
/>
)}
</ScrollView>
</View>
);