This commit is contained in:
Marcos Rodriguez Vélez 2021-10-28 15:08:35 -04:00
parent 95c83e991a
commit ae06cab57a
No known key found for this signature in database
GPG Key ID: 0D64671698D11C5C
2 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ class AmountInput extends Component {
this.setState({ mostRecentFetchedRate });
})
.finally(() => {
this.setState({ isRateOutdated: currency.isRateOutdated() });
currency.isRateOutdated().then(isRateOutdated => this.setState({ isRateOutdated }));
});
}
@ -198,7 +198,7 @@ class AmountInput extends Component {
});
} finally {
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
this.setState({ isRateBeingUpdated: false, isRateOutdated: currency.isRateOutdated() });
this.setState({ isRateBeingUpdated: false, isRateOutdated: await currency.isRateOutdated() });
}
});
};

View File

@ -273,7 +273,7 @@ const LdkOpenChannel = (props: any) => {
address={remoteHostWithPubkey}
isLoading={isLoading}
inputAccessoryViewID={(BlueDismissKeyboardInputAccessory as any).InputAccessoryViewID}
onChangeText={(text) => setParams({ remoteHostWithPubkey: text })}
onChangeText={text => setParams({ remoteHostWithPubkey: text })}
onBarScanned={onBarScanned}
launchedBy={name}
/>
@ -282,7 +282,7 @@ const LdkOpenChannel = (props: any) => {
<ArrowPicker
onChange={newKey => {
const nodes = LightningLdkWallet.getPredefinedNodes();
if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey]});
if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey] });
}}
items={LightningLdkWallet.getPredefinedNodes()}
isItemUnknown={!Object.values(LightningLdkWallet.getPredefinedNodes()).some(node => node === remoteHostWithPubkey)}