mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
WIP
This commit is contained in:
parent
95c83e991a
commit
ae06cab57a
@ -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() });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user