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

check error message for null or empty as well in addition to undefined

This commit is contained in:
Samuel Yeung 2021-09-24 13:19:33 -04:00
parent 6aafd987b6
commit cd5fd9a8b6

View File

@ -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;
} }