Skip to content

Commit

Permalink
Merge branch 'temp-sched-ux' of github.com:target/goalert into temp-s…
Browse files Browse the repository at this point in the history
…ched-ux
  • Loading branch information
Forfold committed Sep 28, 2021
2 parents ef2b754 + 4721d48 commit 0fe3247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/app/dialogs/FormDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ FormDialog.propTypes = {
caption: p.node,

errors: p.arrayOf(
// this is an Error interface
p.shape({
message: p.string.isRequired,
nonSubmit: p.bool, // indicates that it is a non-submit related error
}),
),

Expand Down
4 changes: 1 addition & 3 deletions web/src/app/users/UserContactMethodVerificationDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export default function UserContactMethodVerificationDialog(props) {
loading={loading || !cm.type}
errors={
sendError
? [{ message: sendError, nonSubmit: true }].concat(
nonFieldErrors(error),
)
? [new Error(sendError)].concat(nonFieldErrors(error))
: nonFieldErrors(error)
}
data-cy='verify-form'
Expand Down

0 comments on commit 0fe3247

Please sign in to comment.