From 86bfc5c5cf884be41374dc207fa2e4a4cb80fa63 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:42:16 +0200 Subject: [PATCH] Destructure to get tx ID --- components/forms/CreateTxForm/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/forms/CreateTxForm/index.tsx b/components/forms/CreateTxForm/index.tsx index c9ea613..65afcde 100644 --- a/components/forms/CreateTxForm/index.tsx +++ b/components/forms/CreateTxForm/index.tsx @@ -74,7 +74,7 @@ const CreateTxForm = ({ router, senderAddress, accountOnChain }: CreateTxFormPro memo, }; - const transactionID = await requestJson("/api/transaction", { + const { transactionID } = await requestJson("/api/transaction", { body: { dataJSON: JSON.stringify(tx) }, });