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

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

View File

@ -86,7 +86,7 @@ function Form(): JSX.Element {
};
const setWarningMessage = (message: string) => {
if (message == undefined) {
if (!message) {
return;
}