From cfc30f85a65451cf338c3790245d23f45e5d4b8d Mon Sep 17 00:00:00 2001 From: CloudCludfore Date: Thu, 20 Jun 2024 15:10:10 +0700 Subject: [PATCH] fix show deposit, withdraw section when not connect account --- src/app/get-aura/deposit.tsx | 14 ++++++-------- src/app/get-aura/withdraw.tsx | 5 +++++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/app/get-aura/deposit.tsx b/src/app/get-aura/deposit.tsx index 9142060..1748731 100644 --- a/src/app/get-aura/deposit.tsx +++ b/src/app/get-aura/deposit.tsx @@ -46,6 +46,11 @@ function Deposit() { const inputValue = event.target.value; setValue("amount", inputValue.replace(/[^0-9]/g, "")); }; + + if (!account?.address) { + return
; + } + return (
@@ -124,14 +129,7 @@ function Deposit() { message: "Amount must be a positive number", }, }} - render={({ field }) => ( - - )} + render={({ field }) => } />