Fix invoice amount for comments
This commit is contained in:
parent
1cd9750be5
commit
f2f09b22c4
|
@ -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}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue