Skip to content

Commit f409bbb

Browse files
authored
Fix #146 - Invert order count condition
1 parent 81482bf commit f409bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Customer/CustomerChecker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public function canErase(int $entityId): bool
3131
['nin' => $this->erasureConfig->getAllowedStatesToErase($customer->getWebsiteId())]
3232
);
3333

34-
return $collection->getSize() > 0;
34+
return !$collection->getSize();
3535
}
3636
}

0 commit comments

Comments
 (0)