FIX: setIsAdvancedModeEnabled

This commit is contained in:
Ivan Vershigora 2023-03-18 12:31:27 +00:00
parent 861b9b7bfb
commit 7d9baab87b
No known key found for this signature in database
GPG Key ID: DCCF7FB5ED2CEBD7
2 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ export const BlueStorageProvider = ({ children }) => {
const decryptStorage = BlueApp.decryptStorage;
const isPasswordInUse = BlueApp.isPasswordInUse;
const cachedPassword = BlueApp.cachedPassword;
const setisAdvancedModeEnabled = BlueApp.setisAdvancedModeEnabled;
const setIsAdvancedModeEnabled = BlueApp.setIsAdvancedModeEnabled;
const getHodlHodlSignatureKey = BlueApp.getHodlHodlSignatureKey;
const addHodlHodlContract = BlueApp.addHodlHodlContract;
const getHodlHodlContracts = BlueApp.getHodlHodlContracts;
@ -265,7 +265,7 @@ export const BlueStorageProvider = ({ children }) => {
getHodlHodlApiKey,
decryptStorage,
isPasswordInUse,
setisAdvancedModeEnabled,
setIsAdvancedModeEnabled,
setPreferredFiatCurrency,
preferredFiatCurrency,
setLanguage,

View File

@ -15,7 +15,7 @@ const styles = StyleSheet.create({
});
const GeneralSettings = () => {
const { isAdvancedModeEnabled, setisAdvancedModeEnabled, wallets, isHandOffUseEnabled, setIsHandOffUseEnabledAsyncStorage } =
const { isAdvancedModeEnabled, setIsAdvancedModeEnabled, wallets, isHandOffUseEnabled, setIsHandOffUseEnabledAsyncStorage } =
useContext(BlueStorageContext);
const [isLoading, setIsLoading] = useState(true);
const [isAdvancedModeSwitchEnabled, setIsAdvancedModeSwitchEnabled] = useState(false);
@ -23,7 +23,7 @@ const GeneralSettings = () => {
const { navigate } = useNavigation();
const { colors } = useTheme();
const onAdvancedModeSwitch = async value => {
await setisAdvancedModeEnabled(value);
await setIsAdvancedModeEnabled(value);
setIsAdvancedModeSwitchEnabled(value);
};
const onLegacyURv1Switch = async value => {