mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 11:09:20 +01:00
FIX: Only send complication updates if watch is reachable
This commit is contained in:
parent
563162c8b1
commit
e722e43d95
1 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,7 @@ function WatchConnectivity() {
|
|||
}, [walletsInitialized, wallets, preferredFiatCurrency, isReachable, isInstalled]);
|
||||
|
||||
useEffect(() => {
|
||||
if (walletsInitialized && preferredFiatCurrency) {
|
||||
if (isInstalled && isReachable && walletsInitialized && preferredFiatCurrency) {
|
||||
try {
|
||||
transferCurrentComplicationUserInfo({
|
||||
preferredFiatCurrency: JSON.parse(preferredFiatCurrency).endPointKey,
|
||||
|
@ -38,8 +38,7 @@ function WatchConnectivity() {
|
|||
console.log(e);
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [preferredFiatCurrency, walletsInitialized]);
|
||||
}, [preferredFiatCurrency, walletsInitialized, isReachable, isInstalled]);
|
||||
|
||||
const handleMessages = (message, reply) => {
|
||||
if (message.request === 'createInvoice') {
|
||||
|
|
Loading…
Add table
Reference in a new issue