diff --git a/src/components/Faucet.tsx b/src/components/Faucet.tsx index 9348a60..26365bd 100644 --- a/src/components/Faucet.tsx +++ b/src/components/Faucet.tsx @@ -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 }; } } );