Shun Miyazawa 4 년 전
부모
커밋
032b687369
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

+ 2 - 2
packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

@@ -40,11 +40,11 @@ const InAppNotificationDropdown: FC = (props) => {
     console.log(props);
     console.log(props);
 
 
     const socket = props.socketIoContainer.getSocket();
     const socket = props.socketIoContainer.getSocket();
-    socket.on('InAppNotification:countUpdate', (data: { user: string, count: number }) => {
+    socket.on('InAppNotification:countUpdate', (data: { userId: string, count: number }) => {
       // eslint-disable-next-line no-console
       // eslint-disable-next-line no-console
       console.log('socketData', data);
       console.log('socketData', data);
 
 
-      if (props.me === data.user) {
+      if (props.me === data.userId) {
         // TODO: Fetch notification list by #78557
         // TODO: Fetch notification list by #78557
         // fetchNotificationList();
         // fetchNotificationList();