Apply suggestions from code review

Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com>
Signed-off-by: Aramis Sennyey <34432188+sennyeya@users.noreply.github.com>
This commit is contained in:
Aramis Sennyey
2024-02-01 12:43:02 -05:00
committed by GitHub
parent f845dd6f4f
commit 020f0b71db
2 changed files with 2 additions and 2 deletions
@@ -36,7 +36,7 @@ export function useAllEntitiesCount() {
limit: 0,
};
if (Object.keys(catalogFilters).length === 0) {
if (Object.keys(catalogFilters.filter).length === 0) {
prevRequest.current = undefined;
return prevRequest.current;
}
@@ -78,7 +78,7 @@ export function useOwnedEntitiesCount() {
useDeepCompareEffect(() => {
// context contains no filter, wait
if (Object.keys(catalogFilters).length === 0) {
if (Object.keys(catalogFilters.filter).length === 0) {
return;
}
// ownershipEntityRefs is loading, wait