Skip to content

Commit

Permalink
Disable Exchange Setings when config.disableSwaps == true
Browse files Browse the repository at this point in the history
  • Loading branch information
paullinator committed Sep 3, 2023
1 parent e94fb49 commit 2ddffc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/scenes/SettingsScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class SettingsSceneComponent extends React.Component<Props, State> {
)}

<SettingsHeaderRow icon={<IonIcon color={theme.icon} name="ios-options" size={iconSize} />} label={lstrings.settings_options_title_cap} />
<SettingsTappableRow label={lstrings.settings_exchange_settings} onPress={this.handleExchangeSettings} />
{config.disableSwaps !== true ? <SettingsTappableRow label={lstrings.settings_exchange_settings} onPress={this.handleExchangeSettings} /> : null}
<SettingsTappableRow label={lstrings.spending_limits} onPress={this.handleSpendingLimits} />
<SettingsLabelRow right={autoLogoutRightText} label={lstrings.settings_title_auto_logoff} onPress={this.handleAutoLogout} />
<SettingsLabelRow right={this.props.defaultFiat.replace('iso:', '')} label={lstrings.settings_title_currency} onPress={this.handleDefaultFiat} />
Expand Down

0 comments on commit 2ddffc9

Please sign in to comment.