1
0
mirror of https://github.com/covidpass-org/covidpass.git synced 2025-02-23 15:07:44 +01:00

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

View File

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