about summary refs log tree commit diff
path: root/app/javascript/glitch/components
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-07-13 14:20:51 -0700
committerkibigo! <marrus-sh@users.noreply.github.com>2017-07-16 16:49:12 -0700
commit21b04af524888fea134cc7dfa04e1203ede0427a (patch)
treea223f4d56792e5cdf44aa7bab4b22a04cbbac6ce /app/javascript/glitch/components
parent3ea02314b951b42b1d5ee0cfc0a7aa9104050665 (diff)
Fixes lack of <tbody> in header metadata table
Diffstat (limited to 'app/javascript/glitch/components')
-rw-r--r--app/javascript/glitch/components/account/header.js26
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>