mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
FIX: Quick action update when currency changes
This commit is contained in:
parent
74ed167b34
commit
f22628500b
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import { BlueStorageContext } from '../blue_modules/storage-context';
|
|||
|
||||
function DeviceQuickActions() {
|
||||
DeviceQuickActions.STORAGE_KEY = 'DeviceQuickActionsEnabled';
|
||||
const { wallets, walletsInitialized, isStorageEncrypted } = useContext(BlueStorageContext);
|
||||
const { wallets, walletsInitialized, isStorageEncrypted, preferredFiatCurrency } = useContext(BlueStorageContext);
|
||||
|
||||
useEffect(() => {
|
||||
if (walletsInitialized) {
|
||||
|
@ -22,7 +22,7 @@ function DeviceQuickActions() {
|
|||
.catch(() => QuickActions.clearShortcutItems());
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [wallets, walletsInitialized]);
|
||||
}, [wallets, walletsInitialized, preferredFiatCurrency]);
|
||||
|
||||
DeviceQuickActions.setEnabled = (enabled = true) => {
|
||||
return AsyncStorage.setItem(DeviceQuickActions.STORAGE_KEY, JSON.stringify(enabled)).then(() => {
|
||||
|
|
Loading…
Add table
Reference in a new issue