Working Fix for Cancel request rejected in Metamask-extension