export const getLocalStorageObject = <T>(key: string, log?: Log): T => {
  let result = {} as T
  try {
    result = JSON.parse(localStorage.getItem(key) ?? '{}') as T
  } catch (e) {