Skip to content

Commit

Permalink
fix: comment with url closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Jul 29, 2023
1 parent fb9f49d commit 974c804
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/widgets/comment/CommentBox/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ const SubmitButton = () => {
text: textAtom,
author: authorAtom,
mail: mailAtom,
url: urlAtom,

source: sourceAtom,
avatar: avatarAtom,
Expand All @@ -176,8 +177,9 @@ const SubmitButton = () => {
const mail = jotaiStore.get(mailAtom)
const avatar = jotaiStore.get(avatarAtom)
const source = jotaiStore.get(sourceAtom) as any
const url = jotaiStore.get(urlAtom)

const commentDto: CommentDto = { text, author, mail, avatar, source }
const commentDto: CommentDto = { text, author, mail, avatar, source, url }

if (isLogged) {
delete commentDto.source
Expand Down

1 comment on commit 974c804

@vercel
Copy link

@vercel vercel bot commented on 974c804 Jul 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

springtide.vercel.app
innei.in
shiro-innei.vercel.app
shiro-git-main-innei.vercel.app

Please sign in to comment.