diff --git a/src/components/Me.tsx b/src/components/Me.tsx index 9b9c9ae7..e84ad433 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -449,8 +449,8 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr ) case 'reads': - // Show loading skeletons while fetching reads - if (loading && reads.length === 0) { + // Show loading skeletons while fetching reads or if no data yet + if (reads.length === 0) { return (
{Array.from({ length: 6 }).map((_, i) => ( @@ -460,15 +460,6 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr ) } - // No reads at all - if (reads.length === 0) { - return ( -
- No articles in your reads. -
- ) - } - // Show reads with filters return ( <> @@ -496,8 +487,8 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr ) case 'links': - // Show loading skeletons while fetching links - if (loading && links.length === 0) { + // Show loading skeletons while fetching links or if no data yet + if (links.length === 0) { return (
{Array.from({ length: 6 }).map((_, i) => ( @@ -507,15 +498,6 @@ const Me: React.FC = ({ relayPool, activeTab: propActiveTab, pubkey: pr ) } - // No links at all - if (links.length === 0) { - return ( -
- No links yet. -
- ) - } - // Show links with filters return ( <>