aboutsummaryrefslogtreecommitdiff
path: root/src/pages/HomePage/ReviewForm.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-07-05 14:23:21 +0300
committereug-vs <eug-vs@keemail.me>2020-07-05 14:23:21 +0300
commit1a36aadf83ccbb5ff86f027cc9109bfa9dbe75bc (patch)
tree1fabf41468e95c3ab963c764d3b08b7099e255e4 /src/pages/HomePage/ReviewForm.tsx
parent7138b0ef5eae5d5116a31898f90bc995452d93f8 (diff)
downloadwhich-ui-1a36aadf83ccbb5ff86f027cc9109bfa9dbe75bc.tar.gz
feat: allow feedback to have empty message
Diffstat (limited to 'src/pages/HomePage/ReviewForm.tsx')
-rw-r--r--src/pages/HomePage/ReviewForm.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/HomePage/ReviewForm.tsx b/src/pages/HomePage/ReviewForm.tsx
index 7ad0880..248e36e 100644
--- a/src/pages/HomePage/ReviewForm.tsx
+++ b/src/pages/HomePage/ReviewForm.tsx
@@ -27,7 +27,7 @@ const ReviewForm: React.FC = () => {
const { enqueueSnackbar } = useSnackbar();
const handleSubmit = (): void => {
- if (contents && score) {
+ if (score) {
post('/feedback', { contents, score, version }).then(() => {
enqueueSnackbar('Your feedback has been submitted!', {
variant: 'success'