Skip to content

Commit

Permalink
fix sync with extension SMH (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Barbieri authored Mar 20, 2019
1 parent d77a301 commit f560ae0
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions app/components/Views/ImportWallet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,26 +152,6 @@ class ImportWallet extends Component {
this.disconnectWebsockets();
}

scanCode = () => {
if (this.props.navigation.getParam('existingUser', false)) {
Alert.alert(
strings('sync_with_extension.warning_title'),
strings('sync_with_extension.warning_message'),
[
{
text: strings('sync_with_extension.warning_cancel_button'),
onPress: () => false,
style: 'cancel'
},
{ text: strings('sync_with_extension.warning_ok_button'), onPress: () => this.showQrCode() }
],
{ cancelable: false }
);
} else {
this.showQrCode();
}
};

showQrCode = () => {
this.props.navigation.push('QRScanner', {
onScanSuccess: data => {
Expand Down Expand Up @@ -360,7 +340,7 @@ class ImportWallet extends Component {

safeSync = () => {
const { existingUser } = this.state;
const action = () => this.onPressSync;
const action = () => this.onPressSync();
if (existingUser) {
this.alertExistingUser(action);
} else {
Expand Down

0 comments on commit f560ae0

Please sign in to comment.