Skip to content

Commit

Permalink
refactor: melhoria no handler de erro de requisição
Browse files Browse the repository at this point in the history
  • Loading branch information
WellingtonNico committed Oct 24, 2023
1 parent 4a5d67d commit e8ddb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wellnotify.htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class WellNotifyHTMX {
});
} else if (
!event.detail.successful &&
(event.detail.isError || event.detail.failed) &&
(event.detail.isError || event.detail.failed || event.detail.error) &&
msgAfterRequestFail
) {
wellNotifyInstance.error(msgAfterRequestFail, {
Expand Down

0 comments on commit e8ddb15

Please sign in to comment.