Skip to content

Commit

Permalink
Fix wrap/unwrap button case
Browse files Browse the repository at this point in the history
  • Loading branch information
gabmontes committed Apr 29, 2024
1 parent f354ae8 commit 3e03be1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/pages/[locale]/wrap-eth.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const WrapUnwrapEth = function () {

const [errorMessage, setErrorMessage] = useTemporalMessage()
const [successMessage, setSuccessMessage] = useTemporalMessage()
const { nativeTokenSymbol = 'hETH' } = findByChainId(chainId)
const { nativeTokenSymbol = 'ETH' } = findByChainId(chainId)

const isValidNumber =
value !== '' &&
Expand Down Expand Up @@ -184,15 +184,15 @@ const WrapUnwrapEth = function () {
/>
</div>
<Button
className="mt-7.5 uppercase"
className="mt-7.5"
disabled={
!active ||
!isValidNumber ||
(operation === Operation.Wrap && !canWrap) ||
(operation === Operation.Unwrap && !canUnwrap)
}
>
{t(operation === Operation.Wrap ? 'wrap' : 'unwrap', {
{t(operation === Operation.Wrap ? 'Wrap' : 'Unwrap', {
nativeTokenSymbol
})}
</Button>
Expand Down

0 comments on commit 3e03be1

Please sign in to comment.