mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
FIX
This commit is contained in:
parent
77e4e8aaf5
commit
d0c0daffae
2 changed files with 10 additions and 6 deletions
|
@ -13,6 +13,7 @@ import Button, { ButtonStyle } from '../../components/Button';
|
|||
import LdkOpenChannel from './ldkOpenChannel';
|
||||
import { Psbt } from 'bitcoinjs-lib';
|
||||
import { AbstractWallet, LightningLdkWallet } from '../../class';
|
||||
import { sleep } from '../../tests/e2e/helperz';
|
||||
const selectWallet = require('../../helpers/select-wallet');
|
||||
const confirm = require('../../helpers/confirm');
|
||||
const LdkNodeInfoChannelStatus = { ACTIVE: 'Active', INACTIVE: 'Inactive', PENDING: 'PENDING', STATUS: 'status' };
|
||||
|
@ -321,9 +322,10 @@ const LdkInfo = () => {
|
|||
);
|
||||
};
|
||||
|
||||
const onNewOpenChannelModalBackdropPress = () => {
|
||||
const onNewOpenChannelModalBackdropPress = async () => {
|
||||
closeModal();
|
||||
setTimeout(() => setNewOpenChannelModalVisible(false), 650);
|
||||
setNewOpenChannelModalVisible(false);
|
||||
await sleep(650);
|
||||
setTimeout(() => {
|
||||
setNewOpenChannelModalProps(undefined);
|
||||
setParams({ psbt: undefined });
|
||||
|
@ -337,7 +339,8 @@ const LdkInfo = () => {
|
|||
|
||||
const navigateToOpenChannel = async ({ isPrivateChannel }: { isPrivateChannel: boolean }) => {
|
||||
closeModal();
|
||||
setTimeout(() => setNewOpenChannelModalVisible(false), 650);
|
||||
setNewOpenChannelModalVisible(false);
|
||||
await sleep(650);
|
||||
const availableWallets = [...wallets.filter((item: AbstractWallet) => item.isSegwit() && item.allowSend())];
|
||||
if (availableWallets.length === 0) {
|
||||
return alert(loc.lnd.refill_create);
|
||||
|
@ -349,8 +352,9 @@ const LdkInfo = () => {
|
|||
selectedWallet.getAddressAsync().then(wallet.setRefundAddress);
|
||||
setNewOpenChannelModalVisible(true);
|
||||
};
|
||||
const closeNewOpenChannelModalPropsModal = () => {
|
||||
setTimeout(() => setNewOpenChannelModalVisible(false), 650);
|
||||
const closeNewOpenChannelModalPropsModal = async () => {
|
||||
setNewOpenChannelModalVisible(false);
|
||||
await sleep(650);
|
||||
};
|
||||
|
||||
const onBackdropPress = async () => {
|
||||
|
|
|
@ -135,7 +135,7 @@ const LdkOpenChannel = (props: any) => {
|
|||
}
|
||||
|
||||
onPsbtOpenChannelStartedTsChange(+new Date());
|
||||
closeContainerModal();
|
||||
await closeContainerModal();
|
||||
navigate('SendDetailsRoot', {
|
||||
screen: 'SendDetails',
|
||||
params: {
|
||||
|
|
Loading…
Add table
Reference in a new issue