Skip to content

Commit

Permalink
Merge pull request #364 from Psychedelic/fix/request-connect-whitelist
Browse files Browse the repository at this point in the history
Replaced wrong error code for correct one (rejectedAgent vs rejected)
  • Loading branch information
ChriLnth authored Jan 28, 2022
2 parents 5b0bab9 + d794a2e commit b59bd61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Pages/Notification/components/AllowAgent/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const AllowAgent = ({

useEffect(() => {
setOnTimeout(() => () => {
handleAllowAgent(CONNECTION_STATUS.rejectedAgent).then(() => {
handleAllowAgent(CONNECTION_STATUS.rejected).then(() => {
setHandled(true);
window?.close?.();
});
Expand All @@ -103,7 +103,7 @@ const AllowAgent = ({

window.onbeforeunload = () => {
if (!handled) {
handleAllowAgent(CONNECTION_STATUS.rejectedAgent);
handleAllowAgent(CONNECTION_STATUS.rejected);
}
};

Expand Down

0 comments on commit b59bd61

Please sign in to comment.