Add user setup config

This commit is contained in:
Joey Yakimowich-Payne 2026-01-13 16:18:46 -07:00
commit 342ff60b70
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
7 changed files with 230 additions and 18 deletions

View file

@ -43,9 +43,16 @@ export const Landing: React.FC<LandingProps> = ({ onGenerate, onCreateManual, on
};
const handleLoadQuiz = async (id: string) => {
const quiz = await loadQuiz(id);
setLibraryOpen(false);
onLoadQuiz(quiz);
try {
const quiz = await loadQuiz(id);
setLibraryOpen(false);
onLoadQuiz(quiz);
} catch (err) {
if (err instanceof Error && err.message.includes('redirecting')) {
return;
}
console.error('Failed to load quiz:', err);
}
};
return (