mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
commit
9cdc4dbf83
4 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ export default class SyncedAsyncStorage {
|
|||
console.log('saved, seq num:', text);
|
||||
resolve(text);
|
||||
})
|
||||
.catch(reason => reject(reason));
|
||||
.catch((reason: Error) => reject(reason));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ const QRCodeComponent: React.FC<QRCodeComponentProps> = ({
|
|||
const shareImageBase64 = {
|
||||
url: `data:image/png;base64,${data}`,
|
||||
};
|
||||
Share.open(shareImageBase64).catch((error: any) => console.log(error));
|
||||
Share.open(shareImageBase64).catch((error: Error) => console.log(error));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ const TransactionsNavigationHeader: React.FC<TransactionsNavigationHeaderProps>
|
|||
wallet
|
||||
.allowOnchainAddress()
|
||||
.then((value: boolean) => setAllowOnchainAddress(value))
|
||||
.catch((e: any) => {
|
||||
.catch((e: Error) => {
|
||||
console.log('This Lndhub wallet does not have an onchain address API.');
|
||||
setAllowOnchainAddress(false);
|
||||
});
|
||||
|
|
|
@ -22,7 +22,7 @@ function useAsyncPromise<T>(promiseFn: () => Promise<T>) {
|
|||
setLoading(false);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
.catch((err: Error) => {
|
||||
if (isMounted) {
|
||||
setError(err);
|
||||
setLoading(false);
|
||||
|
|
Loading…
Add table
Reference in a new issue