check error message for null or empty as well in addition to undefined

This commit is contained in:
Samuel Yeung 2021-09-24 13:19:33 -04:00
parent 6aafd987b6
commit cd5fd9a8b6
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ function Form(): JSX.Element {
// Check if there is a translation and replace message accordingly
const setErrorMessage = (message: string) => {
if (message == undefined) {
if (!message) {
return;
}