refactor: add user info to authData

This commit is contained in:
Tristan Yang
2022-06-29 10:56:50 +08:00
parent c5694a07b0
commit aff66ad5c8
37 changed files with 94 additions and 104 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ const StyledWrapper = styled.div`
export default function Overview({ id = 0 }) {
const { loginUser, channel } = useAppSelector((store) => {
return {
loginUser: store.contacts.byId[store.authData.uid],
loginUser: store.authData.user,
channel: store.channels.byId[id]
};
});