This commit is contained in:
Manav Rathi
2024-07-05 20:35:19 +05:30
parent fcb86da03c
commit aebe12bd9e
2 changed files with 2 additions and 3 deletions

View File

@@ -41,8 +41,7 @@ export const getAuthCodes = async (): Promise<Code[]> => {
}
}),
);
// Remove undefined values
const filteredAuthCodes = authCodes.filter((f) => !!f);
const filteredAuthCodes = authCodes.filter((f) => f !== undefined);
filteredAuthCodes.sort((a, b) => {
if (a.issuer && b.issuer) {
return a.issuer.localeCompare(b.issuer);

View File

@@ -128,4 +128,4 @@ const substitutePlaceholders = (
return segment;
}
})
.filter((s) => !!s);
.filter((s) => s !== undefined);