Skip to content

Commit

Permalink
fix: Remaining error messages after updating successfully
Browse files Browse the repository at this point in the history
Signed-off-by: sawadashota <[email protected]>
  • Loading branch information
sawadashota committed May 17, 2020
1 parent faec25c commit 08ad559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfservice/flow/settings/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ func (e *HookExecutor) PostSettingsHook(w http.ResponseWriter, r *http.Request,
}
}

ctxUpdate.Request.Methods[settingsType].Config.ResetErrors()

if err := e.d.SettingsRequestPersister().UpdateSettingsRequest(r.Context(), ctxUpdate.Request); err != nil {
return err
}
Expand Down

0 comments on commit 08ad559

Please sign in to comment.