Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc3a2cb

Browse files
committed
Update verbiage
1 parent e19bd13 commit cc3a2cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/xServices/createTemplate/createTemplateXService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const createTemplateMachine =
121121
UPLOAD_FILE: {
122122
actions: ["assignFile"],
123123
target: "uploading",
124-
cond: "isFromScratch",
124+
cond: "isNotUsingExample",
125125
},
126126
REMOVE_FILE: {
127127
actions: ["removeFile"],
@@ -381,7 +381,7 @@ export const createTemplateMachine =
381381
},
382382
guards: {
383383
isExampleProvided: ({ exampleId }) => exampleId !== undefined,
384-
isFromScratch: ({ exampleId }) => exampleId === undefined,
384+
isNotUsingExample: ({ exampleId }) => exampleId === undefined,
385385
hasFile: ({ file }) => file !== undefined,
386386
hasFailed: (_, { data }) => data.job.status === "failed",
387387
hasMissingParameters: (_, { data }) =>

0 commit comments

Comments
 (0)