style: run prettier
This commit is contained in:
@ -81,7 +81,7 @@ export type SyncPayload = z.infer<typeof SyncPayload>;
|
|||||||
export function verifyStoreData(type: StoreType, data: string) {
|
export function verifyStoreData(type: StoreType, data: string) {
|
||||||
const schema = storeTypes[type];
|
const schema = storeTypes[type];
|
||||||
if (!schema) return false;
|
if (!schema) return false;
|
||||||
if(data === "null") return true; // allow null data
|
if (data === "null") return true; // allow null data
|
||||||
try {
|
try {
|
||||||
const parsedData = JSON.parse(data);
|
const parsedData = JSON.parse(data);
|
||||||
schema.parse(parsedData);
|
schema.parse(parsedData);
|
||||||
|
|||||||
Reference in New Issue
Block a user