Skip to content

Commit 6edf4f7

Browse files
committed
Changed 'not' to 'no'
1 parent 789f835 commit 6edf4f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/react/src/schemas/flow.switch.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type SwitchValues = [
1919
Switch<{
2020
branches: [
2121
[Form<{ whyYes: string }>, Return<{ interested: "yes"; whyYes: string }>],
22-
[Form<{ whyNot: string }>, Return<{ interested: "not"; whyNot: string }>],
22+
[Form<{ whyNot: string }>, Return<{ interested: "no"; whyNot: string }>],
2323
[
2424
Form<{ whyMaybe: string }>,
2525
Return<{ interested: "maybe"; whyMaybe: string }>
@@ -62,7 +62,7 @@ export const switchSchema: Schema<SwitchValues> = [
6262
label: "Yes, that sounds good.",
6363
},
6464
{
65-
value: "not",
65+
value: "no",
6666
label: "No, it is not for me.",
6767
},
6868
{
@@ -127,7 +127,7 @@ export const switchSchema: Schema<SwitchValues> = [
127127
],
128128
},
129129
{
130-
case: ({ interested }) => interested === "not",
130+
case: ({ interested }) => interested === "no",
131131
then: [
132132
{
133133
form: {
@@ -160,7 +160,7 @@ export const switchSchema: Schema<SwitchValues> = [
160160
},
161161
{
162162
return: ({ whyNot }) => ({
163-
interested: "not",
163+
interested: "no",
164164
whyNot,
165165
}),
166166
},

0 commit comments

Comments
 (0)