Skip to content

Commit

Permalink
No need to throw on a Cancelled promise
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Feb 12, 2024
1 parent 8f0e9f6 commit cfdecce
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ export class WalletPluginAnchor extends AbstractWalletPlugin {
],
})

promptResponse.catch((error) => {
// Throw if what we caught was a cancelation
if (error instanceof Canceled) {
throw error
}
})

// Await a promise race to wait for either the wallet response or the cancel
const callbackResponse: CallbackPayload = await waitForCallback(callback, this.buoyWs, t)
verifyLoginCallbackResponse(callbackResponse, context)
Expand Down

0 comments on commit cfdecce

Please sign in to comment.