diff options
author | 2023-10-08 21:58:05 +0300 | |
---|---|---|
committer | 2023-10-08 21:58:05 +0300 | |
commit | 3d5af69cbdb9820e5515424a38bd230c6f9e6504 (patch) | |
tree | 93367577b6c5a5db931e0bbc74d69788d0a05dd4 /vnext/src/ui/PM.js | |
parent | 69ec9ec1d468eae71c0bd02b7dd7d6d6c13d291c (diff) |
vnext: fix remaining unauthenticated components
Diffstat (limited to 'vnext/src/ui/PM.js')
-rw-r--r-- | vnext/src/ui/PM.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/ui/PM.js b/vnext/src/ui/PM.js index 3aa877b1..b0426ea3 100644 --- a/vnext/src/ui/PM.js +++ b/vnext/src/ui/PM.js @@ -12,7 +12,7 @@ function PM(props) { <li> <div style={chatItemStyle(visitor, chat)}> <Avatar user={chat.user} /> - <div className={visitor.uid === chat.user.uid ? 'msg-bubble msg-bubble-my' : 'msg-bubble'}> + <div className={visitor && visitor.uid === chat.user.uid ? 'msg-bubble msg-bubble-my' : 'msg-bubble'}> <p dangerouslySetInnerHTML={{ __html: format(chat.body, '0', false) }} /> </div> </div> |