diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 69f9d060..7c1047fc 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -57,7 +57,7 @@ const Me: React.FC = ({ const activeAccount = Hooks.useActiveAccount() const navigate = useNavigate() const { filter: urlFilter } = useParams<{ filter?: string }>() - const [activeTab, setActiveTab] = useState(propActiveTab || 'highlights') + const activeTab = propActiveTab || 'highlights' // Only for own profile const viewingPubkey = activeAccount?.pubkey @@ -129,13 +129,6 @@ const Me: React.FC = ({ } }, []) - // Sync activeTab from prop when route changes - useEffect(() => { - if (propActiveTab) { - setActiveTab(propActiveTab) - } - }, [propActiveTab]) - // Sync filter state with URL changes useEffect(() => { const normalized = urlFilter === 'emoji' ? 'archive' : urlFilter