Skip to content

Commit

Permalink
fix(admin):fix empty state management when search yields no result
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Dec 12, 2024
1 parent 9a4c553 commit 2366086
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,23 +153,26 @@ export default function RegistryManagerHomepage() {

if (
status === "A_VALIDER_PAR_CERTIFICATEUR" &&
certificationPage.rows.length === 0
certificationPage.rows.length === 0 &&
searchFilter === ""
) {
return <NoCertificationsToValidate />;
}

if (
status === "VALIDE_PAR_CERTIFICATEUR" &&
visible &&
certificationPage.rows.length === 0
certificationPage.rows.length === 0 &&
searchFilter === ""
) {
return <NoVisibleCertifications />;
}

if (
status === "VALIDE_PAR_CERTIFICATEUR" &&
!visible &&
certificationPage.rows.length === 0
certificationPage.rows.length === 0 &&
searchFilter === ""
) {
return <NoInvisibleCertifications />;
}
Expand Down

0 comments on commit 2366086

Please sign in to comment.