diff --git a/src/entries/popup/pages/home/Points/PointsDashboard.tsx b/src/entries/popup/pages/home/Points/PointsDashboard.tsx index 5bb86cd1c9..ba9553c540 100644 --- a/src/entries/popup/pages/home/Points/PointsDashboard.tsx +++ b/src/entries/popup/pages/home/Points/PointsDashboard.tsx @@ -74,11 +74,20 @@ function Card({ }: PropsWithChildren & { onClick?: () => void; }) { + const getTabIndex = () => { + if (typeof props.tabIndex === 'number') { + return props.tabIndex; + } else if (props.onClick) { + return 0; + } + return -1; + }; return ( {formatReferralCode(data.user.referralCode)} @@ -334,6 +344,7 @@ function ReferralCode() { onTap={() => copyReferralLink(data.user.referralCode)} onClick={() => copyReferralLink(data.user.referralCode)} style={{ height: 40, willChange: 'transform' }} + tabIndex={-1} >