From d42e79d6634c38a534205adf49ac7557e0090ad8 Mon Sep 17 00:00:00 2001 From: Tadas Petra Date: Fri, 6 Dec 2024 14:42:55 -0600 Subject: [PATCH] actually fixed it --- src/pages/index.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 39e4dc0..2dcb1d5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -10,8 +10,8 @@ const votes: VoteData = getVotes(); // Sort apps by vote count (descending) const sortedApps = allApps.sort((a, b) => { - const votesA = votes[a.data.name]?.votes || 0; - const votesB = votes[b.data.name]?.votes || 0; + const votesA = votes.default[a.data.name]?.votes || 0; + const votesB = votes.default[b.data.name]?.votes || 0; return votesB - votesA; }); ---