Skip to content

Commit 505e6ef

Browse files
refactor(token-logo): type native icon map as Partial to model unmapped chains
1 parent 9ae8e55 commit 505e6ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/sharedComponents/TokenLogo/nativeTokenIcons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010

1111
import type { ChainsIds } from '@/src/lib/networks.config'
1212

13-
export const nativeTokenIcons: Record<ChainsIds, IconComponent> = {
13+
export const nativeTokenIcons: Partial<Record<ChainsIds, IconComponent>> = {
1414
1: NetworkEthereum,
1515
10: NetworkOptimism,
1616
137: NetworkPolygon,

0 commit comments

Comments
 (0)