Skip to content

Commit

Permalink
feat: only show walletconnect button when ses is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Apr 15, 2024
1 parent 7f9062e commit 3aa74bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/screens/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { HathorList, ListItem, ListMenu } from '../components/HathorList';
import {
IS_MULTI_TOKEN,
NETWORK_SETTINGS_FEATURE_TOGGLE,
SES_FEATURE_TOGGLE,
WALLET_CONNECT_FEATURE_TOGGLE,
} from '../constants';
import CopyClipboard from '../components/CopyClipboard';
Expand All @@ -43,7 +44,8 @@ const mapStateToProps = (state) => {
uniqueDeviceId: state.uniqueDeviceId,
server,
isPushNotificationAvailable: isPushNotificationAvailableForUser(state),
walletConnectEnabled: state.featureToggles[WALLET_CONNECT_FEATURE_TOGGLE],
walletConnectEnabled: (state.featureToggles[WALLET_CONNECT_FEATURE_TOGGLE]
&& state.featureToggles[SES_FEATURE_TOGGLE]),
networkSettingsEnabled: state.featureToggles[NETWORK_SETTINGS_FEATURE_TOGGLE],
};
};
Expand Down

0 comments on commit 3aa74bc

Please sign in to comment.