Browse Source

FIX: Fixed an import bug due to wrong property

localNotifications
Marcos Rodriguez Vélez 6 years ago
parent
commit
3baf4a439a
  1. 2
      ios/BlueWallet/Info.plist
  2. 2
      loc/en.js
  3. 23
      screen/send/details.js
  4. 4
      screen/wallets/import.js

2
ios/BlueWallet/Info.plist

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

2
loc/en.js

@ -185,7 +185,7 @@ module.exports = {
help:
'Under certain circumstances, you might be forced to disclose a ' +
'password. To keep your coins safe, BlueWallet can create another ' +
'encrypted storage, with a different password. Under the pressure, ' +
'encrypted storage, with a different password. Under pressure, ' +
'you can disclose this password to a 3rd party. If entered in ' +
"BlueWallet, it will unlock new 'fake' storage. This will seem " +
'legit to a 3rd party, but will secretly keep your main storage ' +

23
screen/send/details.js

@ -44,21 +44,20 @@ export default class SendDetails extends Component {
this.state = { isLoading: true };
const wallets = BlueApp.getWallets();
if (!BlueApp.getWallets().some(item => item.type !== LightningCustodianWallet.type)) {
console.log('props.navigation.state.params=', props.navigation.state.params);
let address;
let memo;
if (props.navigation.state.params) address = props.navigation.state.params.address;
if (props.navigation.state.params) memo = props.navigation.state.params.memo;
let fromAddress;
if (props.navigation.state.params) fromAddress = props.navigation.state.params.fromAddress;
let fromSecret;
if (props.navigation.state.params) fromSecret = props.navigation.state.params.fromSecret;
let fromWallet;
if (!BlueApp.getWallets().some(item => item.type !== LightningCustodianWallet.type) && typeof address === 'undefined') {
alert('Before sending Bitcoins, you must first add a Bitcoin wallet.');
props.navigation.dismiss();
} else {
console.log('props.navigation.state.params=', props.navigation.state.params);
let address;
let memo;
if (props.navigation.state.params) address = props.navigation.state.params.address;
if (props.navigation.state.params) memo = props.navigation.state.params.memo;
let fromAddress;
if (props.navigation.state.params) fromAddress = props.navigation.state.params.fromAddress;
let fromSecret;
if (props.navigation.state.params) fromSecret = props.navigation.state.params.fromSecret;
let fromWallet = null;
for (let w of wallets) {
if (w.getSecret() === fromSecret) {
fromWallet = w;

4
screen/wallets/import.js

@ -55,7 +55,7 @@ export default class WalletsImport extends Component {
} else {
alert(loc.wallets.import.success);
ReactNativeHapticFeedback.trigger('notificationSuccess', false);
w.setLabel(loc.wallets.import.imported + ' ' + w.getTypeReadable());
w.setLabel(loc.wallets.import.imported + ' ' + w.typeReadable);
BlueApp.wallets.push(w);
await BlueApp.saveToDisk();
EV(EV.enum.WALLETS_COUNT_CHANGED);
@ -263,7 +263,7 @@ export default class WalletsImport extends Component {
WalletsImport.propTypes = {
navigation: PropTypes.shape({
navigate: PropTypes.func,
dismiss: PropTypes.func,
goBack: PropTypes.func,
dismiss: PropTypes.func,
}),
};

Loading…
Cancel
Save