From c6a49e8faf7c1ab88b5bbdd5254cbdd3149e5967 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Thu, 21 Mar 2024 17:32:57 -0500 Subject: [PATCH] Print address correctly --- src/components/Faucet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }; } } );