From 18a15b4e60dcfba521c318eb6061fb5d257f96ae Mon Sep 17 00:00:00 2001 From: keyan Date: Mon, 25 Apr 2022 12:07:31 -0500 Subject: [PATCH] improve err message on boost --- components/adv-post-form.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/adv-post-form.js b/components/adv-post-form.js index 3ef283e1..10bb272b 100644 --- a/components/adv-post-form.js +++ b/components/adv-post-form.js @@ -8,7 +8,7 @@ import { NAME_QUERY } from '../fragments/users' export function AdvPostSchema (client) { return { boost: Yup.number().typeError('must be a number') - .min(BOOST_MIN, `must be at least ${BOOST_MIN}`).integer('must be whole'), + .min(BOOST_MIN, `must be blank or at least ${BOOST_MIN}`).integer('must be whole'), forward: Yup.string() .test({ name: 'name', @@ -34,13 +34,13 @@ export default function AdvPostForm () { body={ <> boost optional} + label={<>boost} name='boost' hint={ranks posts higher temporarily based on the amount} append={sats} /> forward sats to optional} + label={<>forward sats to} name='forward' hint={100% of sats will be sent to this user} prepend=@