Skip to content

Commit

Permalink
Fix #146 - Invert order count condition
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 authored Aug 20, 2024
1 parent 81482bf commit f409bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Customer/CustomerChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function canErase(int $entityId): bool
['nin' => $this->erasureConfig->getAllowedStatesToErase($customer->getWebsiteId())]
);

return $collection->getSize() > 0;
return !$collection->getSize();
}
}

0 comments on commit f409bbb

Please sign in to comment.