Fix some more spelling errors.

This commit is contained in:
muzam1l
2022-07-13 20:11:21 +05:30
parent ef70bfb13a
commit a3d094e873
6 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View File

@@ -32,3 +32,4 @@ yarn-error.log*
# vercel # vercel
.vercel .vercel
.vscode

View File

@@ -103,7 +103,7 @@ export const compileCode = async (activeId: number) => {
}); });
} }
state.compiling = false; state.compiling = false;
toast.error(`Error occured while compiling!`, { position: "bottom-center" }); toast.error(`Error occurred while compiling!`, { position: "bottom-center" });
file.containsErrors = true file.containsErrors = true
} }
}; };

View File

@@ -189,7 +189,7 @@ export const deployHook = async (
console.log(err); console.log(err);
state.deployLogs.push({ state.deployLogs.push({
type: "error", type: "error",
message: "Error occured while deploying", message: "Error occurred while deploying",
}); });
} }
if (currentAccount) { if (currentAccount) {
@@ -272,10 +272,10 @@ export const deleteHook = async (account: IAccount & { name?: string }) => {
} }
} catch (err) { } catch (err) {
console.log(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({ state.deployLogs.push({
type: "error", type: "error",
message: "Error occured while deleting hook", message: "Error occurred while deleting hook",
}); });
} }
if (currentAccount) { if (currentAccount) {

View File

@@ -13,7 +13,7 @@ export const downloadAsZip = async () => {
const zipFileName = guessZipFileName(files); const zipFileName = guessZipFileName(files);
zipped.saveFile(zipFileName); zipped.saveFile(zipFileName);
} catch (error) { } 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 { } finally {
state.zipLoading = false state.zipLoading = false
} }

View File

@@ -19,7 +19,7 @@ export const importAccount = (secret: string, name?: string) => {
if (err?.message) { if (err?.message) {
toast.error(err.message) toast.error(err.message)
} else { } else {
toast.error('Error occured while importing account') toast.error('Error occurred while importing account')
} }
return; return;
} }

View File

@@ -19,6 +19,6 @@ export const getErrors = (source?: string): Error | undefined => {
); );
if (!probs.length) return undefined if (!probs.length) return undefined
const errors = probs.map(prob => `[${prob.code}] on line ${prob.line}: ${prob.message}`) 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 return error
} }