Skip to content

Commit

Permalink
Fix: clear proposal if rejection fails
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 25, 2023
1 parent cbe097e commit 05d5aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/walletconnect/WcSessionMananger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ const WcSessionManager = ({ sessions, uri }: WcSessionManagerProps) => {
await walletConnect.rejectSession(proposal)
} catch (e) {
setError(asError(e))
return
}

// Always clear the proposal, even if the rejection fails
setProposal(undefined)
}, [proposal, walletConnect, setError])

Expand Down

0 comments on commit 05d5aeb

Please sign in to comment.