Skip to content

Fix decrypt message confirmation UI crash#10252

Merged
Gudahtt merged 1 commit intodevelopfrom
fix-decrypt-confirmation-ui-crash
Jan 22, 2021
Merged

Fix decrypt message confirmation UI crash#10252
Gudahtt merged 1 commit intodevelopfrom
fix-decrypt-confirmation-ui-crash

Conversation

@Gudahtt
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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