mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-23 15:07:44 +01:00
check error message for null or empty as well in addition to undefined
This commit is contained in:
parent
6aafd987b6
commit
cd5fd9a8b6
@ -77,7 +77,7 @@ function Form(): JSX.Element {
|
||||
|
||||
// Check if there is a translation and replace message accordingly
|
||||
const setErrorMessage = (message: string) => {
|
||||
if (message == undefined) {
|
||||
if (!message) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user