From 3a48b977a11b2c9de11c472b2ccdb57f6ad6a6e4 Mon Sep 17 00:00:00 2001 From: jdrskr Date: Thu, 30 Nov 2023 09:58:57 +0100 Subject: [PATCH] feat: update button --- frontend/src/pages/client/pages/IssuePage.tsx | 2 +- .../pages/components/InteractionsWidget.tsx | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/client/pages/IssuePage.tsx b/frontend/src/pages/client/pages/IssuePage.tsx index dd551e7..f16be47 100644 --- a/frontend/src/pages/client/pages/IssuePage.tsx +++ b/frontend/src/pages/client/pages/IssuePage.tsx @@ -12,7 +12,7 @@ export const IssuePage: React.FC = () => { display: "flex", alignItems: "center", justifyContent: "center", - height: "100%", + height: "100vh", }} > diff --git a/frontend/src/pages/client/pages/components/InteractionsWidget.tsx b/frontend/src/pages/client/pages/components/InteractionsWidget.tsx index 61b28c5..05a26f0 100644 --- a/frontend/src/pages/client/pages/components/InteractionsWidget.tsx +++ b/frontend/src/pages/client/pages/components/InteractionsWidget.tsx @@ -57,7 +57,7 @@ export const InteractionsWidget: React.FC = () => { try { await contract.scheduleOrder( ASSETS[asset].address!, - data.amount, + ethers.utils.parseEther(data.amount.toString()), !!value ); @@ -98,7 +98,8 @@ export const InteractionsWidget: React.FC = () => { Select asset: @@ -123,10 +124,20 @@ export const InteractionsWidget: React.FC = () => { {!signer && ( - + )} {signer && ( - )}