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