diff --git a/components/common/FeedbackForm.js b/components/common/FeedbackForm.js index 675ff096..0e2a089d 100644 --- a/components/common/FeedbackForm.js +++ b/components/common/FeedbackForm.js @@ -83,7 +83,13 @@ const FeedbackForm = ({ if (Array.isArray(value)) { return value.length === 0; } - return value === '' || value === null || value === undefined; + if (value == null) { + return true; + } + if (typeof value === 'string') { + return value.trim() === ''; + } + return false; } );