mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 23:38:57 +01:00
Merge branch 'master' into clip
This commit is contained in:
commit
d19710cd49
1 changed files with 11 additions and 5 deletions
|
@ -488,12 +488,14 @@ const WalletDetails: React.FC = () => {
|
|||
onValueChange={async (value: boolean) => {
|
||||
if (wallet.setHideTransactionsInWalletsList) {
|
||||
wallet.setHideTransactionsInWalletsList(!value);
|
||||
triggerHapticFeedback(HapticFeedbackTypes.ImpactLight);
|
||||
setHideTransactionsInWalletsList(!wallet.getHideTransactionsInWalletsList());
|
||||
}
|
||||
try {
|
||||
await saveToDisk();
|
||||
} catch (error: any) {
|
||||
console.log(error.message);
|
||||
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
|
||||
console.error(error.message);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
@ -517,11 +519,13 @@ const WalletDetails: React.FC = () => {
|
|||
setIsBIP47Enabled(value);
|
||||
if (wallet.switchBIP47) {
|
||||
wallet.switchBIP47(value);
|
||||
triggerHapticFeedback(HapticFeedbackTypes.ImpactLight);
|
||||
}
|
||||
try {
|
||||
await saveToDisk();
|
||||
} catch (error: any) {
|
||||
console.log(error.message);
|
||||
} catch (error: unknown) {
|
||||
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
|
||||
console.error((error as Error).message);
|
||||
}
|
||||
}}
|
||||
testID="BIP47Switch"
|
||||
|
@ -543,11 +547,13 @@ const WalletDetails: React.FC = () => {
|
|||
setWalletUseWithHardwareWallet(value);
|
||||
if (wallet.setUseWithHardwareWalletEnabled) {
|
||||
wallet.setUseWithHardwareWalletEnabled(value);
|
||||
triggerHapticFeedback(HapticFeedbackTypes.ImpactLight);
|
||||
}
|
||||
try {
|
||||
await saveToDisk();
|
||||
} catch (error: any) {
|
||||
console.log(error.message);
|
||||
} catch (error: unknown) {
|
||||
triggerHapticFeedback(HapticFeedbackTypes.NotificationError);
|
||||
console.error((error as Error).message);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue