about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-10-22 18:30:20 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-10-28 19:24:02 +0200
commit7d3acb1f2c984cb402aa507b51abf7c824227fc8 (patch)
tree5e6eb529406a083e27a449308b552c004566b670 /app/javascript/flavours
parentbda5040085e2e80a2f58917e1f12e5a95473ce9c (diff)
[Glitch] Fix error when rendering limited account in web UI
Port 73a48318a19a207c63f6d03ecea8ce35b7e2364a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/components/avatar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/avatar.js b/app/javascript/flavours/glitch/components/avatar.js
index 1da4a861c..38fd99af5 100644
--- a/app/javascript/flavours/glitch/components/avatar.js
+++ b/app/javascript/flavours/glitch/components/avatar.js
@@ -71,7 +71,7 @@ export default class Avatar extends React.PureComponent {
         style={style}
         data-avatar-of={account && `@${account.get('acct')}`}
         role='img'
-        aria-label={account.get('acct')}
+        aria-label={account?.get('acct')}
       />
     );
   }