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 decrypt message confirmation UI crash #10252

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jan 22, 2021

Fixes: #10247

Explanation:
The decrypt message confirmation UI will crash if the origin metadata is not present. This PR makes the UI tolerant of that metadata being missing. It was always intended to be optional anyway.

Manual testing steps:

  • Initiate a decrypt confirmation
  • See that it does not crash

@Gudahtt Gudahtt requested a review from a team as a code owner January 22, 2021 18:15
@Gudahtt Gudahtt requested a review from rekmarks January 22, 2021 18:15
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

The decrupt message confirmation UI will crash if the origin metadata
is not present. This PR makes the UI tolerant of that metadata being
missing. It was always intended to be optional anyway.
@Gudahtt Gudahtt force-pushed the fix-decrypt-confirmation-ui-crash branch from e602e0c to be33caf Compare January 22, 2021 18:21
@metamaskbot
Copy link
Collaborator

Builds ready [be33caf]
Page Load Metrics (548 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint40705595
domContentLoaded32569754711153
load32769954811153
domInteractive32569754611153

@Gudahtt Gudahtt merged commit ab3b64e into develop Jan 22, 2021
@Gudahtt Gudahtt deleted the fix-decrypt-confirmation-ui-crash branch January 22, 2021 18:40
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sending eth_decrypt throws "Cannot read property 'name' of undefined" error
3 participants