diff options
author | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-13 14:20:51 -0700 |
---|---|---|
committer | kibigo! <marrus-sh@users.noreply.github.com> | 2017-07-16 16:49:12 -0700 |
commit | 21b04af524888fea134cc7dfa04e1203ede0427a (patch) | |
tree | a223f4d56792e5cdf44aa7bab4b22a04cbbac6ce | |
parent | 3ea02314b951b42b1d5ee0cfc0a7aa9104050665 (diff) |
Fixes lack of <tbody> in header metadata table
-rw-r--r-- | app/javascript/glitch/components/account/header.js | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/app/javascript/glitch/components/account/header.js b/app/javascript/glitch/components/account/header.js index 875ee3c54..e2d961240 100644 --- a/app/javascript/glitch/components/account/header.js +++ b/app/javascript/glitch/components/account/header.js @@ -91,18 +91,20 @@ export default class Header extends ImmutablePureComponent { {metadata.length && ( <table className='account__metadata'> - {(() => { - let data = []; - for (let i = 0; i < metadata.length; i++) { - data.push( - <tr key={i}> - <th scope='row'><div dangerouslySetInnerHTML={{ __html: emojify(metadata[i][0]) }} /></th> - <td><div dangerouslySetInnerHTML={{ __html: emojify(metadata[i][1]) }} /></td> - </tr> - ); - } - return data; - })()} + <tbody> + {(() => { + let data = []; + for (let i = 0; i < metadata.length; i++) { + data.push( + <tr key={i}> + <th scope='row'><div dangerouslySetInnerHTML={{ __html: emojify(metadata[i][0]) }} /></th> + <td><div dangerouslySetInnerHTML={{ __html: emojify(metadata[i][1]) }} /></td> + </tr> + ); + } + return data; + })()} + </tbody> </table> ) || null} </div> |