This commit is contained in:
Timothy Jaeryang Baek
2026-02-21 14:19:28 -06:00
parent b1dc58ddb7
commit 10c13b686c
2 changed files with 3 additions and 94 deletions
+3 -3
View File
@@ -248,11 +248,11 @@
for (const prompt of savedPrompts) {
await createNewPrompt(localStorage.token, {
command: prompt.command.charAt(0) === '/' ? prompt.command.slice(1) : prompt.command,
title: prompt.title,
command: prompt.command,
name: prompt.name,
content: prompt.content
}).catch((error) => {
toast.error(`${error}`);
toast.error(typeof error === 'string' ? error : JSON.stringify(error));
return null;
});
}