Skip to content

Commit

Permalink
fix: missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
gparlakov committed Sep 24, 2024
1 parent 14cb2cc commit 15df898
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

0 comments on commit 15df898

Please sign in to comment.