Browse Source

allow render without currentUser

afc163 8 năm trước cách đây
mục cha
commit
48ad98c3f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/GlobalHeader/index.js

+ 1 - 1
src/components/GlobalHeader/index.js

@@ -57,7 +57,7 @@ export default class GlobalHeader extends PureComponent {
   }
   render() {
     const {
-      currentUser,
+      currentUser = {},
       collapsed,
       fetchingNotices,
       isMobile,