Fix invoice amount for comments

This commit is contained in:
ekzyis 2023-07-23 01:50:06 +02:00
parent 1cd9750be5
commit f2f09b22c4
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@ import { commentsViewedAfterComment } from '../lib/new-comments'
import { commentSchema } from '../lib/validate' import { commentSchema } from '../lib/validate'
import Info from './info' import Info from './info'
import { useAnonymous } from '../lib/anonymous' import { useAnonymous } from '../lib/anonymous'
import { ANON_COMMENT_FEE } from '../lib/constants'
export function ReplyOnAnotherPage ({ parentId }) { export function ReplyOnAnotherPage ({ parentId }) {
return ( return (
@ -130,8 +129,8 @@ export default function Reply ({ item, onSuccess, replyOpen, children, placehold
text: '' text: ''
}} }}
schema={commentSchema} schema={commentSchema}
onSubmit={async (values, { resetForm }) => { onSubmit={async ({ cost, ...values }, { resetForm }) => {
await anonCreateComment(ANON_COMMENT_FEE, values, parentId, resetForm) await anonCreateComment(cost, values, parentId, resetForm)
}} }}
storageKeyPrefix={'reply-' + parentId} storageKeyPrefix={'reply-' + parentId}
> >