Skip to content

Commit

Permalink
fix: fix crash in NetworkSelector in Swap (#5719)
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming authored Sep 4, 2024
1 parent 9c8d90c commit 145a53a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kit/src/components/NetworksFilterItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { StyleSheet } from 'react-native';

import { Image, SizableText, Tooltip, XStack } from '@onekeyhq/components';
import type { IXStackProps } from '@onekeyhq/components';

Expand All @@ -24,7 +26,7 @@ export function NetworksFilterItem({
py="$1.5"
borderRadius="$2"
userSelect="none"
borderWidth="1px"
borderWidth={StyleSheet.hairlineWidth}
borderColor={isSelected ? '$borderActive' : '$border'}
{...(!isSelected &&
!disabled && {
Expand Down

0 comments on commit 145a53a

Please sign in to comment.