Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/aura-nw/landing-page int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
sonln99 committed Jun 20, 2024
2 parents 8684b52 + cfc30f8 commit 539e254
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/app/get-aura/deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ function Deposit() {
const inputValue = event.target.value;
setValue("amount", inputValue.replace(/[^0-9]/g, ""));
};

if (!account?.address) {
return <div></div>;
}

return (
<div className="main-container sub-container flex flex-col">
<div className="flex flex-col">
Expand Down Expand Up @@ -196,14 +201,7 @@ function Deposit() {
message: "Amount must be a positive number",
},
}}
render={({ field }) => (
<input
type="text"
placeholder="Amount"
{...field}
onChange={handleChange}
/>
)}
render={({ field }) => <input type="text" placeholder="Amount" {...field} onChange={handleChange} />}
/>
<button
type="button"
Expand Down
5 changes: 5 additions & 0 deletions src/app/get-aura/withdraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ function Withdraw() {
transferAddress("aura", _account?.address as string)?.accountAddress
);
}, [_account]);

if (!_account?.address) {
return <div></div>;
}

return (
<div className="main-container sub-container flex flex-col">
<div className="flex flex-col">
Expand Down

0 comments on commit 539e254

Please sign in to comment.