Skip to content

Commit 92ad80d

Browse files
committed
Fix redirect after conversation creation
1 parent 126ecc7 commit 92ad80d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/NewConversation/DirectMessageForm/DirectMessageFrom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ function DirectMessageForm() {
2525
headingString,
2626
submitHandler,
2727
messages,
28-
conversation,
28+
createdConversation,
2929
avatar,
3030
} = useDirectMessageFrom();
3131

32-
if (conversation) {
32+
if (createdConversation) {
3333
return (
3434
<Redirect
3535
to={{
36-
pathname: `${CONVERSATION_WITHOUT_ID}${conversation._id}`,
36+
pathname: `${CONVERSATION_WITHOUT_ID}${createdConversation._id}`,
3737
state: {
3838
fromCreateDm: true,
3939
},

0 commit comments

Comments
 (0)