Skip to content

Commit

Permalink
feat: open chat with beneficiaire fiche ouverte
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlbrjc committed Jan 23, 2025
1 parent da8ad34 commit 4bba45b
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function FicheBeneficiairePage(props: FicheBeneficiaireProps) {

const [portefeuille] = usePortefeuille()
const chats = useChats()
const [currentConversation, setCurrentConversation] = useCurrentConversation()
const [_, setCurrentConversation] = useCurrentConversation()
const [conseiller] = useConseiller()
const [alerte] = useAlerte()

Expand Down Expand Up @@ -101,7 +101,7 @@ function FicheBeneficiairePage(props: FicheBeneficiaireProps) {
useMatomo(trackingLabel, portefeuille.length > 0)

useEffect(() => {
if (!lectureSeule && chats && !currentConversation) {
if (!lectureSeule && chats) {
const conversation = chats.find(({ id }) => id === beneficiaire.id)
if (conversation)
setCurrentConversation({ conversation, shouldFocusOnRender: false })
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4bba45b

Please sign in to comment.