Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/lib/EnvelopeEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
// Expose activeHeader
export let activeHeader: DocumentHeader | undefined = undefined;

// If autocorrect is set to false the envelope is not updated automatically. Event `corrected` is always fired with the result
// If autocorrect is set to false the envelope is not updated automatically. Event `correct` is always fired with the result
export let autocorrect = true;

// If hideConsoleBar is true will force to hide the error suggestions in Code View
Expand Down Expand Up @@ -202,7 +202,7 @@

dispatch("correct", result);

state = "corrected";
state = "built";

if (!editorForm) return true;

Expand All @@ -225,7 +225,7 @@
return "errored";
}

return "signed"
return "signed";
};

export const validate = async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/types/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Readable, Writable } from "svelte/store";
import type { UIModelRootField } from "$lib/editor/form/utils/model";
import type { Envelope } from "./envelope";

export type State = "init" | "empty" | "loaded" | "modified" | "invalid" | "errored" | "built" | "signed" | "corrected";
export type State = "init" | "empty" | "loaded" | "modified" | "invalid" | "errored" | "built" | "signed";

export type DocumentHeader = {
label: string;
Expand Down