Skip to content

Commit

Permalink
fix: swaps status
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Dec 11, 2023
1 parent 2e31bcf commit 74c9c15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/screens/SendToBitcoinAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function SendToBitcoinAddress() {
setFeesLoading(true);

const result = await api.getSwapInfo();
if (!result.available) {

Check failure on line 85 in src/app/screens/SendToBitcoinAddress/index.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Property 'available' does not exist on type 'SwapInfoResponse'.
throw new Error("Swaps currently not available");
}

setServiceFeePercentage(result.service_fee_percentage);
setSatsPerVbyte(result.sats_per_vbyte);
Expand Down

0 comments on commit 74c9c15

Please sign in to comment.