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:
parent
0650e89a1f
commit
6aafd987b6
@ -86,7 +86,7 @@ function Form(): JSX.Element {
|
||||
};
|
||||
|
||||
const setWarningMessage = (message: string) => {
|
||||
if (message == undefined) {
|
||||
if (!message) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user