From d794a2e6cfd9869f1c0e4a78ca9fc12adfe58342 Mon Sep 17 00:00:00 2001 From: rocky-fleek Date: Fri, 28 Jan 2022 12:43:11 -0300 Subject: [PATCH] Replaced wrong error code for correct one (rejectedAgent vs rejected) --- source/Pages/Notification/components/AllowAgent/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Pages/Notification/components/AllowAgent/index.jsx b/source/Pages/Notification/components/AllowAgent/index.jsx index de7ef52d..a8d804ac 100644 --- a/source/Pages/Notification/components/AllowAgent/index.jsx +++ b/source/Pages/Notification/components/AllowAgent/index.jsx @@ -76,7 +76,7 @@ const AllowAgent = ({ useEffect(() => { setOnTimeout(() => () => { - handleAllowAgent(CONNECTION_STATUS.rejectedAgent).then(() => { + handleAllowAgent(CONNECTION_STATUS.rejected).then(() => { setHandled(true); window?.close?.(); }); @@ -103,7 +103,7 @@ const AllowAgent = ({ window.onbeforeunload = () => { if (!handled) { - handleAllowAgent(CONNECTION_STATUS.rejectedAgent); + handleAllowAgent(CONNECTION_STATUS.rejected); } };