Destructure to get tx ID

This commit is contained in:
abefernan 2023-07-26 09:42:16 +02:00
parent 5dd589066d
commit 86bfc5c5cf

View File

@ -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) },
});