Skip to content

Commit 974c804

Browse files
committed
fix: comment with url closes #47
1 parent fb9f49d commit 974c804

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/widgets/comment/CommentBox/ActionBar.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ const SubmitButton = () => {
150150
text: textAtom,
151151
author: authorAtom,
152152
mail: mailAtom,
153+
url: urlAtom,
153154

154155
source: sourceAtom,
155156
avatar: avatarAtom,
@@ -176,8 +177,9 @@ const SubmitButton = () => {
176177
const mail = jotaiStore.get(mailAtom)
177178
const avatar = jotaiStore.get(avatarAtom)
178179
const source = jotaiStore.get(sourceAtom) as any
180+
const url = jotaiStore.get(urlAtom)
179181

180-
const commentDto: CommentDto = { text, author, mail, avatar, source }
182+
const commentDto: CommentDto = { text, author, mail, avatar, source, url }
181183

182184
if (isLogged) {
183185
delete commentDto.source

0 commit comments

Comments
 (0)