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

View File

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