Skip to content

Commit

Permalink
Print address correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Mar 21, 2024
1 parent a5dfb00 commit c6a49e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export function Faucet() {
if (!res.ok) {
throw new Error(await res.text());
} else {
return { txid: (await res.json()).txid, howMuchSats, toAddress };
let json = await res.json();
return { txid: json.txid, howMuchSats, toAddress: json.address };
}
}
);
Expand Down

0 comments on commit c6a49e8

Please sign in to comment.