Skip to content

Fix React warning about missing key in AwaitingSwap#9655

Merged
Gudahtt merged 1 commit intodevelopfrom
fix-missing-key-React-warning
Oct 20, 2020
Merged

Fix React warning about missing key in AwaitingSwap#9655
Gudahtt merged 1 commit intodevelopfrom
fix-missing-key-React-warning

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Oct 20, 2020

The AwaitingSwap component was emitting a React warning when rendered because a component was being rendered in an array without having a key prop set.

A key has been added to the CountdownTimer component, which is passed into the translation helper in an array. The warning no longer appears.

The `AwaitingSwap` component was emitting a React warning when rendered
because a component was being rendered in an array without having a
`key` prop set.

A key has been added to the `CountdownTimer` component, which is passed
into the translation helper in an array. The warning no longer appears.
@Gudahtt Gudahtt requested a review from a team as a code owner October 20, 2020 04:14
@Gudahtt Gudahtt requested a review from danfinlay October 20, 2020 04:14
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [3e49e7a]
Page Load Metrics (1053 ± 117 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaintNaNNaNNaNNaNNaN
domContentLoaded64613901049245117
load64913961053245117
domInteractive64613901048245117

@Gudahtt Gudahtt merged commit d437384 into develop Oct 20, 2020
@Gudahtt Gudahtt deleted the fix-missing-key-React-warning branch October 20, 2020 13:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 2020
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.

3 participants