check error message for null or empty as well in addition to undefined
This commit is contained in:
parent
6aafd987b6
commit
cd5fd9a8b6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue