mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-24 07:27:53 +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) => {
|
const setWarningMessage = (message: string) => {
|
||||||
if (message == undefined) {
|
if (!message) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user