Skip to content

Commit

Permalink
fix: show meesage only if no gas
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed May 18, 2022
1 parent 1428e75 commit ddb0702
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/widget/src/components/SwapButton/SwapButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ export const SwapButton: React.FC = () => {
};

return (
<ButtonTooltip title={t(`swap.insufficientGasOnDestinationChainTooltip`)}>
<ButtonTooltip
title={
!hasGasOnCrossChain
? t(`swap.insufficientGasOnDestinationChainTooltip`)
: undefined
}
>
<Button
variant="contained"
disableElevation
Expand Down

0 comments on commit ddb0702

Please sign in to comment.