check warning message for null or empty as well in addition to undefined
This commit is contained in:
parent
0650e89a1f
commit
6aafd987b6
|
@ -86,7 +86,7 @@ function Form(): JSX.Element {
|
|||
};
|
||||
|
||||
const setWarningMessage = (message: string) => {
|
||||
if (message == undefined) {
|
||||
if (!message) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue