Skip to content

Commit 3898aeb

Browse files
committed
fix: few crashes bug fixes
1 parent 2e8d91f commit 3898aeb

File tree

2 files changed

+2
-2
lines changed
  • web/src/pages
    • MyTransactions/Modal/RaiseDisputeModal
    • NewTransaction/Terms/Payment/GeneralTransaction/TokenAndAmount/TokenSelector/TokenItem

2 files changed

+2
-2
lines changed

web/src/pages/MyTransactions/Modal/RaiseDisputeModal/FeeRequired.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const FeeRequired: React.FC<IFeeRequired> = ({ arbitrationCost }) => {
3737
return (
3838
<StyledCard>
3939
<StyledHeader>Arbitration fee required</StyledHeader>
40-
<StyledQuantity>{formatEther(arbitrationCost)} ETH</StyledQuantity>
40+
{arbitrationCost ? <StyledQuantity>{formatEther(arbitrationCost)} ETH</StyledQuantity> : null}
4141
</StyledCard>
4242
);
4343
};

web/src/pages/NewTransaction/Terms/Payment/GeneralTransaction/TokenAndAmount/TokenSelector/TokenItem/TokenIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const tokenIcons = {
3939
};
4040

4141
const getTokenLogo = (tokenSymbol) => {
42-
const symbol = tokenSymbol.toLowerCase();
42+
const symbol = tokenSymbol?.toLowerCase();
4343
return tokenIcons[symbol] || null;
4444
};
4545

0 commit comments

Comments
 (0)