From e8ddb15dc7aa6b4acf9aaa1b16ced219a560d939 Mon Sep 17 00:00:00 2001 From: Wellington Adriano Nicoletti de Abreu Date: Tue, 24 Oct 2023 17:26:53 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20melhoria=20no=20handler=20de=20erro?= =?UTF-8?q?=20de=20requisi=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wellnotify.htmx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wellnotify.htmx.js b/wellnotify.htmx.js index c1bd813..e3f6849 100644 --- a/wellnotify.htmx.js +++ b/wellnotify.htmx.js @@ -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, {