Replace wild random number key with index (#7629)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent d9bdba5948
commit 7e22244c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/components/app/account-panel.js

@ -42,8 +42,8 @@ AccountPanel.prototype.render = function () {
<span className="font-small">{panelState.identiconLabel.substring(0, 7) + '...'}</span>
</div>
<div className="identity-data flex-column flex-justify-center flex-grow select-none">
{panelState.attributes.map((attr) => (
<div className="flex-row flex-space-between" key={'' + Math.round(Math.random() * 1000000)}>
{panelState.attributes.map((attr, index) => (
<div className="flex-row flex-space-between" key={index}>
<label className="font-small no-select">{attr.key}</label>
<span className="font-small">{attr.value}</span>
</div>

Loading…
Cancel
Save