Skip to content

Commit

Permalink
fix: sleep after channel close
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Jun 6, 2024
1 parent 039ecd3 commit ec17057
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/screens/Lightning/Availability.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { refreshWallet } from '../../utils/wallet';
import { closeAllChannels } from '../../utils/lightning';
import { startCoopCloseTimer } from '../../store/slices/user';
import type { LightningScreenProps } from '../../navigation/types';
import { sleep } from '../../utils/helpers';

const imageSrc = require('../../assets/illustrations/exclamation-mark.png');

Expand All @@ -32,6 +33,7 @@ const Availability = ({

if (closeResponse.isOk() && closeResponse.value.length === 0) {
await refreshWallet();
await sleep(5000); // give beignet some time to process
navigation.navigate('Success', { type: 'savings' });
return;
} else {
Expand Down

0 comments on commit ec17057

Please sign in to comment.