From 2c88c4ff53946601acb03102d0774e353431b211 Mon Sep 17 00:00:00 2001 From: Anthony Bon Louis Uy Cubillas <66798713+louisuy@users.noreply.github.com> Date: Wed, 14 Jun 2023 21:22:27 +0400 Subject: [PATCH] Updated Form to avoid typos when "Createing". --- components/Form.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Form.jsx b/components/Form.jsx index 61bd8b7b..00da74ff 100644 --- a/components/Form.jsx +++ b/components/Form.jsx @@ -56,7 +56,7 @@ const Form = ({ type, post, setPost, submitting, handleSubmit }) => { disabled={submitting} className='px-5 py-1.5 text-sm bg-primary-orange rounded-full text-white' > - {submitting ? `${type}ing...` : type} + {submitting ? (type === 'Create' ? 'Creating' : `${type}ing`) : type}