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 }, ),