Skip to content

Commit

Permalink
Fix sort title direction change
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-slobodian committed May 20, 2024
1 parent e89e5ff commit c453589
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/certificates-list/CertificatesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ export const CertificatesList: React.FunctionComponent<
onClick={() =>
onSort(
name,
currentSortName === name
? currentSortDir === "asc"
? "desc"
: "asc"
: "asc"
currentSortName === name && currentSortDir === "asc" ? "desc" : "asc"
)
}
>
Expand Down

0 comments on commit c453589

Please sign in to comment.