@MetisProtocol
Example
// expected
export async function requestSomething() {
try {
const result = await polisClient.someContract();
return result; // cancel doesn't resolve promise
} catch (error) {
console.log('Error or Cancelled'); // nor reject
}
}
// actual
window.addEventListener('unhandledrejection', ({ reason }) => console.log(reason));
Possible resolution
Wrap inner promises of Wallet dialogs opening into returned promises.