Update add.js

This commit is contained in:
Marcos Rodriguez Velez 2023-12-14 12:52:15 -04:00
parent b6afedf6ef
commit 9a4029c014
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -121,9 +121,9 @@ const WalletsAdd = () => {
useEffect(() => {
AsyncStorage.getItem(AppStorage.LNDHUB)
.then(url => dispatch({ type: 'SET_WALLET_BASE_URI', payload: url }))
.catch(() => dispatch({ type: 'SET_WALLET_BASE_URI', payload: '' }))
.finally(() => dispatch({ type: 'SET_LOADING', payload: false }));
.then(url => setWalletBaseURI(url))
.catch(() => setWalletBaseURI(''))
.finally(() => setIsLoading(false));
}, []);
useEffect(() => {