From 031852334ee0e7ed5b2631f18abda50cb854be65 Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Wed, 13 Nov 2024 11:22:59 +0200 Subject: [PATCH] fix: boolParam --- lib/use-sort-and-group-options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/use-sort-and-group-options.js b/lib/use-sort-and-group-options.js index 604852a0..cb928b31 100644 --- a/lib/use-sort-and-group-options.js +++ b/lib/use-sort-and-group-options.js @@ -31,7 +31,7 @@ export const useSortAndGroupOptions = ( suffix: '-sortOn', }), [descending, setDescending] = useHashState( - settings.descending, + boolParam(settings.descending), hashParam, { suffix: '-descending', @@ -42,7 +42,7 @@ export const useSortAndGroupOptions = ( suffix: '-groupOn', }), [groupOnDescending, setGroupOnDescending] = useHashState( - settings.groupOnDescending, + boolParam(settings.groupOnDescending), hashParam, { suffix: '-groupOnDescending', read: boolParam }, ),