diff --git a/src/app/components/rareSatIcon/rareSatIcon.tsx b/src/app/components/rareSatIcon/rareSatIcon.tsx index 9a2a4e376..79130d074 100644 --- a/src/app/components/rareSatIcon/rareSatIcon.tsx +++ b/src/app/components/rareSatIcon/rareSatIcon.tsx @@ -35,8 +35,8 @@ import styled from 'styled-components'; const Image = styled.img<{ size?: number }>` object-fit: cover; - width: ${(props) => `${props.size}px` ?? '100%'}; - height: ${(props) => `${props.size}px` ?? '100%'}; + width: ${(props) => (typeof props.size === 'undefined' ? '100%' : `${props.size}px`)}; + height: ${(props) => (typeof props.size === 'undefined' ? '100%' : `${props.size}px`)}; `; interface Props { diff --git a/src/app/screens/swap/useMasterCoinsList.tsx b/src/app/screens/swap/useMasterCoinsList.tsx index 51cfd440e..2beb12cb8 100644 --- a/src/app/screens/swap/useMasterCoinsList.tsx +++ b/src/app/screens/swap/useMasterCoinsList.tsx @@ -36,12 +36,11 @@ const useMasterCoinsList = () => { const isStacksSwapsEnabled = useHasFeature(FeatureId.STACKS_SWAPS); const coinsMasterList = useMemo( - () => - [ - ...(runesFtList || []), - btcFt, - ...(!hideStx && isStacksSwapsEnabled ? [stxFt, ...(sip10FtList ?? [])] : []), - ] ?? [], + () => [ + ...(runesFtList || []), + btcFt, + ...(!hideStx && isStacksSwapsEnabled ? [stxFt, ...(sip10FtList ?? [])] : []), + ], [runesFtList, hideStx, isStacksSwapsEnabled, sip10FtList], ); diff --git a/src/app/screens/swap/useVisibleMasterCoinsList.tsx b/src/app/screens/swap/useVisibleMasterCoinsList.tsx index c50669170..d8d0a0267 100644 --- a/src/app/screens/swap/useVisibleMasterCoinsList.tsx +++ b/src/app/screens/swap/useVisibleMasterCoinsList.tsx @@ -14,13 +14,12 @@ const useVisibleMasterCoinsList = () => { const { hideStx } = useWalletSelector(); const coinsMasterList = useMemo( - () => - [ - ...sip10FtList, - ...runesFtList, - btcFt, - ...(!hideStx && isStacksSwapsEnabled ? [stxFt] : []), - ] ?? [], + () => [ + ...sip10FtList, + ...runesFtList, + btcFt, + ...(!hideStx && isStacksSwapsEnabled ? [stxFt] : []), + ], [sip10FtList, runesFtList, hideStx, isStacksSwapsEnabled], );