Skip to content

Commit 05c1153

Browse files
committed
fix: prevent app from breaking when using unsupported chain
EthValue component could not obtain a valid ETH unit when using an unsupported chain.
1 parent 0ae4554 commit 05c1153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/EthValue.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function EthValue({ amount, maxIntDigits, decimals, unit, suffixType, render })
207207
value={value}
208208
decimals={decimals}
209209
render={({ formattedValue }) =>
210-
render({ amount, value, formattedValue, suffix: unitInfo.suffix[suffixType] ?? '' })
210+
render({ amount, value, formattedValue, suffix: unitInfo?.suffix?.[suffixType] ?? '' })
211211
}
212212
/>
213213
);

0 commit comments

Comments
 (0)