FIX: Browser crash when accessing wallet

This commit is contained in:
marcosrdz 2021-02-17 17:30:53 -05:00
parent 6424784d0b
commit b499339c7d
3 changed files with 5 additions and 2 deletions

View File

@ -464,6 +464,10 @@ export default class Browser extends Component {
placeholderTextColor="#81868e"
style={styles.safeURLText}
editable
textContentType="URL"
keyboardType="url"
autoCorrect={false}
autoCapitalize="none"
onSubmitEditing={() => {
Keyboard.dismiss();
let url = this.state.stateURL;

View File

@ -93,7 +93,6 @@ const ScanLndInvoice = () => {
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [wallet]),
[],
);
useEffect(() => {

View File

@ -379,7 +379,7 @@ const WalletTransactions = () => {
screen: 'LappBrowser',
params: {
fromSecret: wallet.current.getSecret(),
fromWallet: wallet,
fromWallet: wallet.current,
url: 'https://duckduckgo.com',
},
});