FIX: Don't override existing tx information when scanning invalid QR

This commit is contained in:
Marcos Rodriguez Vélez 2019-01-06 11:32:14 -05:00
parent d1a9371f87
commit 88379c7e51
3 changed files with 2 additions and 3 deletions

View File

@ -33,7 +33,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>215</string> <string>216</string>
<key>ITSAppUsesNonExemptEncryption</key> <key>ITSAppUsesNonExemptEncryption</key>
<false/> <false/>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>

View File

@ -109,7 +109,6 @@ export default class ScanLndInvoice extends React.Component {
isAmountInitiallyEmpty: decoded.num_satoshis === '0', isAmountInitiallyEmpty: decoded.num_satoshis === '0',
}); });
} catch (Err) { } catch (Err) {
this.setState({ destination: '' });
alert(Err.message); alert(Err.message);
} }
} }

View File

@ -229,7 +229,7 @@ export default class SendDetails extends Component {
}) })
.catch(error => { .catch(error => {
alert(error.errorMessage); alert(error.errorMessage);
this.setState({ address: text.replace(' ', ''), isLoading: false, bip70TransactionExpiration: null, amount: 0 }); this.setState({ isLoading: false, bip70TransactionExpiration: null });
}); });
}, },
); );