From 15df8980805692fc8bb76721f00e8fe6091cacd3 Mon Sep 17 00:00:00 2001 From: Georgi Parlakov Date: Tue, 24 Sep 2024 14:19:18 +0300 Subject: [PATCH] fix: missing method --- .../admin/campaign-applications/CampaignApplicationsGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/admin/campaign-applications/CampaignApplicationsGrid.tsx b/src/components/admin/campaign-applications/CampaignApplicationsGrid.tsx index fc998632d..4d230a824 100644 --- a/src/components/admin/campaign-applications/CampaignApplicationsGrid.tsx +++ b/src/components/admin/campaign-applications/CampaignApplicationsGrid.tsx @@ -115,7 +115,7 @@ export const useCampaignsList = () => { const { data, isLoading } = fetchMutation() return { - list: data?.toSorted((a, b) => b?.updatedAt?.localeCompare(a?.updatedAt ?? '') ?? 0), + list: data?.sort((a, b) => b?.updatedAt?.localeCompare(a?.updatedAt ?? '') ?? 0), isLoading, } }