Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Renatavl committed Jan 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7508e3a commit 4281aa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/containers/user-profile/profile-info/ProfileInfo.tsx
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ import ProfileContainerMobile from '~/containers/user-profile/profile-info/Profi
import { styles } from '~/containers/user-profile/profile-info/ProfileInfo.styles'

import { authRoutes } from '~/router/constants/authRoutes'
import { snackbarVariants } from '~/constants'
import { defaultResponses, snackbarVariants } from '~/constants'

import {
SizeEnum,
@@ -142,12 +142,12 @@ const ProfileInfo = ({ userData, myRole }: ProfileInfoProps) => {
loading: isChatsLoading,
fetchData
} = useAxios<ChatResponse[]>({
service: () => chatService.getChats(),
defaultResponse: []
service: chatService.getChats,
defaultResponse: defaultResponses.array
})

const onSendMessageClick = () => {
const existedChat = listOfChats.find((chat: ChatResponse) => {
const existedChat = listOfChats.find((chat) => {
return chat.members.some((member) => member.user._id == userData._id)
})

0 comments on commit 4281aa1

Please sign in to comment.