Skip to content

Commit

Permalink
BRUH
Browse files Browse the repository at this point in the history
  • Loading branch information
bwmp committed May 4, 2024
1 parent 8214075 commit a4f48b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/util/SharedUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getCookies = (cookie: Cookie, names: string[], urlParams: URLSearch
: value === 'false' ? false
: key == 'colors' ? value.split(',')
: !isNaN(Number(value)) ? Number(value)
: (value.startsWith('{') && key !== 'format') ? JSON.parse(value)
: (value.startsWith('{') && key == 'parsed') ? JSON.parse(value)
: value;
}
return parsedCookiesAndParams;
Expand Down

0 comments on commit a4f48b2

Please sign in to comment.