mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Update lndHub.ts
This commit is contained in:
parent
d6b7b5ff12
commit
18a8efab7b
@ -24,7 +24,7 @@ export const getLNDHub = async (): Promise<string | undefined> => {
|
||||
|
||||
return value ?? undefined;
|
||||
} catch (error) {
|
||||
console.log('Error getting LNDHub preference:', error);
|
||||
console.error('Error getting LNDHub preference:', (error as Error).message);
|
||||
return undefined;
|
||||
}
|
||||
};
|
||||
@ -34,7 +34,7 @@ export const setLNDHub = async (value: string): Promise<void> => {
|
||||
await DefaultPreference.setName(GROUP_IO_BLUEWALLET);
|
||||
await DefaultPreference.set(BlueApp.LNDHUB, value);
|
||||
} catch (error) {
|
||||
console.log('Error setting LNDHub preference:', error);
|
||||
console.error('Error setting LNDHub preference:', error);
|
||||
}
|
||||
};
|
||||
|
||||
@ -44,6 +44,6 @@ export const clearLNDHub = async (): Promise<void> => {
|
||||
await DefaultPreference.clear(BlueApp.LNDHUB);
|
||||
await AsyncStorage.removeItem(BlueApp.LNDHUB);
|
||||
} catch (error) {
|
||||
console.log('Error clearing LNDHub preference:', error);
|
||||
console.error('Error clearing LNDHub preference:', error);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user