Fixed pin reset error if user no auth

This commit is contained in:
Mustafa Buyukcelebi 2019-01-09 11:57:17 +03:00
parent b1c1efc107
commit ce9cdfcdd3

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>
);