Skip to content

Commit

Permalink
Hide MaxButton until connected
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed May 7, 2024
1 parent 429a023 commit 1d36a72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const InputContainer = () => {
/>
<MaxButton
onClick={onMaxBalance}
isHidden={isLoading || isInputMax}
isHidden={!isConnected || isLoading || isInputMax}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ export const SwapInputContainer = () => {
</span>
{parsedBalance ?? '0.0'}
</label>
<MaxButton onClick={onMaxBalance} isHidden={isInputMax} />
<MaxButton
onClick={onMaxBalance}
isHidden={!isConnected || isInputMax}
/>
</div>
)}
</div>
Expand Down

0 comments on commit 1d36a72

Please sign in to comment.