chore(typos): fix typos (#524)

Co-authored-by: stavares843 <stavares843@users.noreply.github.com>
This commit is contained in:
Sara Tavares 2023-01-27 00:34:47 +00:00 committed by GitHub
parent 8957eda966
commit bc69d6f0d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ const machine = createMachine<FormContext, FormEvent, FormTypestate>(
on: { on: {
SUCCESS: { SUCCESS: {
target: "readOnly", target: "readOnly",
actions: "setSucessMessage", actions: "setSuccessMessage",
}, },
ERROR: { ERROR: {
target: "editingForm", target: "editingForm",
@ -151,7 +151,7 @@ const machine = createMachine<FormContext, FormEvent, FormTypestate>(
{ {
actions: { actions: {
reset: assign(() => initialContext), reset: assign(() => initialContext),
setSucessMessage: assign((context, event) => ({ setSuccessMessage: assign((context, event) => ({
...context, ...context,
...(event as FormSuccessEvent).detail, ...(event as FormSuccessEvent).detail,
})), })),

View File

@ -98,7 +98,7 @@ const machine = createMachine<FormContext, FormEvent, FormTypestate>(
on: { on: {
SUCCESS: { SUCCESS: {
target: "signIn", target: "signIn",
actions: "setSucessMessage", actions: "setSuccessMessage",
}, },
ERROR: { ERROR: {
target: "forgotPassword", target: "forgotPassword",
@ -111,7 +111,7 @@ const machine = createMachine<FormContext, FormEvent, FormTypestate>(
{ {
actions: { actions: {
reset: assign(() => initialContext), reset: assign(() => initialContext),
setSucessMessage: assign((context, event) => ({ setSuccessMessage: assign((context, event) => ({
...context, ...context,
...(event as FormSuccessEvent).detail, ...(event as FormSuccessEvent).detail,
})), })),