Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clear pairing URI on rejection #2643

Merged
merged 3 commits into from
Oct 17, 2023
Merged

fix: clear pairing URI on rejection #2643

merged 3 commits into from
Oct 17, 2023

Conversation

iamacook
Copy link
Member

What it solves

Resolves stale pairing URIs in input

How this PR fixes it

When rejecting a session proposal, the pairing URI is cleared from the URL/clipboard (state) meaning that the input is not populated with the value.

How to test it

Copy a pairing URI from a DApp and reject the proposal, observing no value prepopulating the input field.

Screenshots

rejection-clear

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@iamacook iamacook requested a review from katspaugh October 17, 2023 09:07
@iamacook iamacook self-assigned this Oct 17, 2023
@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Branch preview

⏳ Deploying a preview site...

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@@ -66,7 +62,7 @@ const WcInput = ({ uri }: { uri: string }): ReactElement => {
label={error ? error.message : 'Pairing UI'}
placeholder="wc:"
InputProps={{
endAdornment: isFirefox ? undefined : (
endAdornment: isFirefox() ? undefined : (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
endAdornment: isFirefox() ? undefined : (
endAdornment: isPastingSupported() ? undefined : (

@iamacook iamacook requested a review from katspaugh October 17, 2023 09:21
@iamacook iamacook merged commit 4028439 into nect Oct 17, 2023
6 of 9 checks passed
@iamacook iamacook deleted the wc-clear-rejection-uri branch October 17, 2023 09:26
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants