diff --git a/web/apps/auth/src/pages/auth.tsx b/web/apps/auth/src/pages/auth.tsx index fb005ca07..9774ee3e7 100644 --- a/web/apps/auth/src/pages/auth.tsx +++ b/web/apps/auth/src/pages/auth.tsx @@ -78,7 +78,9 @@ const Page: React.FC = () => { }} >
- {(filteredCodes.length || searchTerm.length) && ( + {filteredCodes.length == 0 && searchTerm.length == 0 ? ( + <> + ) : ( { justifyContent: "center", }} > - {filteredCodes.length ? ( - filteredCodes.map((code) => ( - - )) - ) : ( + {filteredCodes.length == 0 ? (
{ marginTop: "32px", }} > - {searchTerm.length &&

{t("NO_RESULTS")}

} + {searchTerm.length > 0 ? ( +

{t("NO_RESULTS")}

+ ) : ( + <> + )}
+ ) : ( + filteredCodes.map((code) => ( + + )) )}