Probably fix the /@undefined issue for good
This commit is contained in:
@@ -29,7 +29,14 @@ export const useCreatorProfileStore = defineStore(
|
|||||||
const value = useSessionStorage(
|
const value = useSessionStorage(
|
||||||
'creator-profile',
|
'creator-profile',
|
||||||
undefined,
|
undefined,
|
||||||
{writeDefaults: false}
|
{
|
||||||
|
writeDefaults: false,
|
||||||
|
storage: window.sessionStorage,
|
||||||
|
serializer: {
|
||||||
|
read: (value) => value ? JSON.parse(value) : undefined,
|
||||||
|
write: (value) => value ? JSON.stringify(value) : undefined
|
||||||
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const hasCreator = computed(
|
const hasCreator = computed(
|
||||||
|
|||||||
Reference in New Issue
Block a user