Skip to content

Commit

Permalink
feat(edit-course): update redirect after lesson creation
Browse files Browse the repository at this point in the history
  • Loading branch information
danilych committed Feb 12, 2024
1 parent ed76fb8 commit dfa1df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/widgets/create-lesson-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function CreateLessonForm({ id }: Props) {

await delay(3000)

navigate('/my-account/my-courses')
navigate(`/edit-course/${course.data.id!}`)
} else {
toast.error(data.payload.message)
}
Expand Down

0 comments on commit dfa1df3

Please sign in to comment.