aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/Author.js
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-07 18:27:23 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-07 18:27:23 +0200
commit7cb7994cdae848053487d00c1730d1e865fb8623 (patch)
treebc9be185e81479d8d3e5b0fc636daea011a64e4c /webui/src/Author.js
parent03202fed493539c8d1fdcad7254687f951d0ca4a (diff)
downloadgit-bug-7cb7994cdae848053487d00c1730d1e865fb8623.tar.gz
github: also pull users email
Diffstat (limited to 'webui/src/Author.js')
-rw-r--r--webui/src/Author.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/webui/src/Author.js b/webui/src/Author.js
index 0ad7e257..e8fe9f94 100644
--- a/webui/src/Author.js
+++ b/webui/src/Author.js
@@ -14,9 +14,13 @@ const styles = theme => ({
const Author = ({ author, bold, classes }) => {
const klass = bold ? [classes.author, classes.bold] : [classes.author];
+ if(!author.email) {
+ return <span className={klass.join(' ')}>{author.displayName}</span>
+ }
+
return (
<Tooltip title={author.email}>
- <span className={klass.join(' ')}>{author.name}</span>
+ <span className={klass.join(' ')}>{author.displayName}</span>
</Tooltip>
);
};