Skip to content

Commit

Permalink
bandaid fix for json in custom format
Browse files Browse the repository at this point in the history
  • Loading branch information
bwmp committed May 4, 2024
1 parent 510b6b2 commit 8214075
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('{') ? JSON.parse(value)
: (value.startsWith('{') && key !== 'format') ? JSON.parse(value)
: value;
}
return parsedCookiesAndParams;
Expand Down

0 comments on commit 8214075

Please sign in to comment.