This commit is contained in:
Marcos Rodriguez Velez 2024-08-14 15:51:48 -04:00
parent dfe6e683cd
commit da56b468bb
2 changed files with 2 additions and 4 deletions

View File

@ -95,9 +95,7 @@ export const StorageProvider = ({ children }: { children: React.ReactNode }) =>
txMetadata.current = BlueApp.tx_metadata;
counterpartyMetadata.current = BlueApp.counterparty_metadata;
setWallets(BlueApp.getWallets());
if (BlueApp.getWallets().length > 0) {
BlueElectrum.connectMain();
}
BlueElectrum.connectMain();
}
}, [walletsInitialized]);

View File

@ -46,7 +46,7 @@ function reducer(state: State, action: Action): State {
const PlausibleDeniability: React.FC = () => {
const { cachedPassword, isPasswordInUse, createFakeStorage, resetWallets } = useStorage();
const [state, dispatch] = useReducer(reducer, initialState);
const { navigate } = useExtendedNavigation()
const { navigate } = useExtendedNavigation();
const promptRef = useRef<PromptPasswordConfirmationModalHandle>(null);
const handleOnCreateFakeStorageButtonPressed = async () => {