From a3d094e873abb8895c440d139dfe9773f5e5aee5 Mon Sep 17 00:00:00 2001 From: muzam1l Date: Wed, 13 Jul 2022 20:11:21 +0530 Subject: [PATCH] Fix some more spelling errors. --- .gitignore | 1 + state/actions/compileCode.ts | 2 +- state/actions/deployHook.tsx | 6 +++--- state/actions/downloadAsZip.ts | 2 +- state/actions/importAccount.ts | 2 +- utils/comment-parser.ts | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 1437c53..ae46c07 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ yarn-error.log* # vercel .vercel +.vscode diff --git a/state/actions/compileCode.ts b/state/actions/compileCode.ts index 2d5ee08..6be012a 100644 --- a/state/actions/compileCode.ts +++ b/state/actions/compileCode.ts @@ -103,7 +103,7 @@ export const compileCode = async (activeId: number) => { }); } state.compiling = false; - toast.error(`Error occured while compiling!`, { position: "bottom-center" }); + toast.error(`Error occurred while compiling!`, { position: "bottom-center" }); file.containsErrors = true } }; diff --git a/state/actions/deployHook.tsx b/state/actions/deployHook.tsx index 0774336..beb4f21 100644 --- a/state/actions/deployHook.tsx +++ b/state/actions/deployHook.tsx @@ -189,7 +189,7 @@ export const deployHook = async ( console.log(err); state.deployLogs.push({ type: "error", - message: "Error occured while deploying", + message: "Error occurred while deploying", }); } if (currentAccount) { @@ -272,10 +272,10 @@ export const deleteHook = async (account: IAccount & { name?: string }) => { } } catch (err) { console.log(err); - toast.error("Error occured while deleting hoook", { id: toastId }); + toast.error("Error occurred while deleting hook", { id: toastId }); state.deployLogs.push({ type: "error", - message: "Error occured while deleting hook", + message: "Error occurred while deleting hook", }); } if (currentAccount) { diff --git a/state/actions/downloadAsZip.ts b/state/actions/downloadAsZip.ts index 8900cac..c99db93 100644 --- a/state/actions/downloadAsZip.ts +++ b/state/actions/downloadAsZip.ts @@ -13,7 +13,7 @@ export const downloadAsZip = async () => { const zipFileName = guessZipFileName(files); zipped.saveFile(zipFileName); } catch (error) { - toast.error('Error occured while creating zip file, try again later') + toast.error('Error occurred while creating zip file, try again later') } finally { state.zipLoading = false } diff --git a/state/actions/importAccount.ts b/state/actions/importAccount.ts index f0525b5..9068169 100644 --- a/state/actions/importAccount.ts +++ b/state/actions/importAccount.ts @@ -19,7 +19,7 @@ export const importAccount = (secret: string, name?: string) => { if (err?.message) { toast.error(err.message) } else { - toast.error('Error occured while importing account') + toast.error('Error occurred while importing account') } return; } diff --git a/utils/comment-parser.ts b/utils/comment-parser.ts index 2279a32..0b57cfd 100644 --- a/utils/comment-parser.ts +++ b/utils/comment-parser.ts @@ -19,6 +19,6 @@ export const getErrors = (source?: string): Error | undefined => { ); if (!probs.length) return undefined const errors = probs.map(prob => `[${prob.code}] on line ${prob.line}: ${prob.message}`) - const error = new Error(`The following error(s) occured while parsing JSDOC: \n${errors.join('\n')}`) + const error = new Error(`The following error(s) occurred while parsing JSDOC: \n${errors.join('\n')}`) return error } \ No newline at end of file