Skip to content

Commit

Permalink
fix warning-no-eth symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed Jun 7, 2024
1 parent e0f4345 commit 4a2fb50
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import { SIDE } from '@/utils/const';

export function WarningNoEth() {
const { side } = useOperationStore();
const { address } = useAccount();
const { address, chain } = useAccount();
const { estimateClaimFees } = useFeeEstimation();

const { data } = useBalance({
address,
});

if (!address || !data) return null;
if (!address || !data || !chain) return null;

if (side === SIDE.EVM_TO_MASSA || data?.value !== 0n) return null;

Expand All @@ -29,7 +29,10 @@ export function WarningNoEth() {
<div className="flex items-center gap-2">
<FiAlertTriangle className="text-s-warning" size={24} />
<p className="mas-body2 text-s-warning">
{Intl.t('index.warning-no-eth', { fees, symbol: data.symbol })}
{Intl.t('index.warning-no-eth', {
fees,
symbol: chain.nativeCurrency.symbol,
})}
</p>
</div>
);
Expand Down

0 comments on commit 4a2fb50

Please sign in to comment.