aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers/local-storage-utils.ts
blob: c2b3f903525481a75fd0c3876da2673e21ac1e54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
function getBoolOrDefault (value: string, defaultValue: boolean) {
  if (value === 'true') return true
  if (value === 'false') return false

  return defaultValue
}

export {
  getBoolOrDefault
}