From 0cc2c9004b2361647796b1cb376c408b7778379c Mon Sep 17 00:00:00 2001 From: Andinus Date: Sun, 26 Sep 2021 18:37:24 +0530 Subject: Alert on Record saved --- client/src/components/Records.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/client/src/components/Records.tsx b/client/src/components/Records.tsx index 54dc946..68006da 100644 --- a/client/src/components/Records.tsx +++ b/client/src/components/Records.tsx @@ -39,6 +39,7 @@ const Records = ({ contract, setUserBalance, Tezos, userAddress, setStorage }: R const newStorage: any = await contract.storage(); if (newStorage) setStorage(newStorage); setUserBalance(await Tezos.tz.getBalance(userAddress)); + alert("Record Saved."); } catch (error) { console.log(error); } finally { @@ -51,26 +52,26 @@ const Records = ({ contract, setUserBalance, Tezos, userAddress, setStorage }: R
- setName(event.target.value)} required/>
- setDate(event.target.value)} required/>
- setAge(event.target.value)} required/>
- setHeight(event.target.value)} required/>
- setWeight(event.target.value)} required/>
    - setHospital(event.target.value)} required/>

-
+