Skip to content

Commit 7421b01

Browse files
Merge pull request BlueWallet#3329 from BlueWallet/asyncsetstat
FIX: Second setState after first async called is done
2 parents ac285dd + a5f32b1 commit 7421b01

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

ios/Podfile.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ PODS:
260260
- React
261261
- react-native-blur (0.8.0):
262262
- React
263-
- react-native-camera (3.44.0):
263+
- react-native-camera (3.44.1):
264264
- React-Core
265-
- react-native-camera/RCT (= 3.44.0)
266-
- react-native-camera/RN (= 3.44.0)
267-
- react-native-camera/RCT (3.44.0):
265+
- react-native-camera/RCT (= 3.44.1)
266+
- react-native-camera/RN (= 3.44.1)
267+
- react-native-camera/RCT (3.44.1):
268268
- React-Core
269-
- react-native-camera/RN (3.44.0):
269+
- react-native-camera/RN (3.44.1):
270270
- React-Core
271271
- react-native-document-picker (3.5.4):
272272
- React
@@ -420,7 +420,7 @@ PODS:
420420
- RNSentry (2.5.2):
421421
- React-Core
422422
- Sentry (= 7.0.0)
423-
- RNShare (6.2.0):
423+
- RNShare (6.2.1):
424424
- React-Core
425425
- RNSVG (12.1.1):
426426
- React
@@ -730,7 +730,7 @@ SPEC CHECKSUMS:
730730
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
731731
react-native-blue-crypto: 23f1558ad3d38d7a2edb7e2f6ed1bc520ed93e56
732732
react-native-blur: cad4d93b364f91e7b7931b3fa935455487e5c33c
733-
react-native-camera: 14f79f085a97ee82f99344e10888cbc774403926
733+
react-native-camera: 6e6d25f6318980dd2837747760628b4442aac01a
734734
react-native-document-picker: c5752781fbc0c126c627c1549b037c139444a4cf
735735
react-native-fingerprint-scanner: c68136ca57e3704d7bdf5faa554ea535ce15b1d0
736736
react-native-idle-timer: 97b8283237d45146a7a5c25bdebe9e1e85f3687b
@@ -772,7 +772,7 @@ SPEC CHECKSUMS:
772772
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
773773
RNSecureKeyStore: f1ad870e53806453039f650720d2845c678d89c8
774774
RNSentry: bfa1e2776c7413570e790cbbf79d2060dd0a565b
775-
RNShare: 32ded9b8603fddf8f8eed42014e7ea7a4b0b8bf0
775+
RNShare: 5ac8f6532ca4cd80fc71caef1cfbba1854a6a045
776776
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
777777
RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59
778778
RNWatch: e4c5d19506c94506860032fb68aedd5991beb985

screen/settings/electrumSettings.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ export default class ElectrumSettings extends Component {
215215
value = DeeplinkSchemaMatch.getServerFromSetElectrumServerAction(value);
216216
}
217217
const [host, port, type] = value.split(':');
218-
this.setState({ host: host, sslPort: '', port: '' });
219-
type === 's' ? this.setState({ sslPort: port }) : this.setState({ port: port });
218+
this.setState({ host: host, sslPort: '', port: '' }, () => {
219+
type === 's' ? this.setState({ sslPort: port }) : this.setState({ port: port });
220+
});
220221
};
221222

222223
importScan = () => {

0 commit comments

Comments
 (0)