You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
517 B

const FIRST_ENTRY_COMPLETED_KEY = "marriage:first-entry-completed";
export function isFirstEntryCompleted(): boolean {
if (typeof window === "undefined") {
return false;
}
try {
return window.localStorage.getItem(FIRST_ENTRY_COMPLETED_KEY) === "true";
} catch {
return false;
}
}
export function markFirstEntryCompleted(): void {
if (typeof window === "undefined") {
return;
}
try {
window.localStorage.setItem(FIRST_ENTRY_COMPLETED_KEY, "true");
} catch {
// ignore
}
}