Merge pull request #2642 from BlueWallet/browser

FIX: Browser crash when accessing wallet
This commit is contained in:
GLaDOS 2021-02-17 23:34:35 +00:00 committed by GitHub
commit e5d72eef1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',
},
});