Skip to content

Commit 183a7dc

Browse files
HP-1631: fixed CustomerState::isDeleted() method
1 parent 2981ac3 commit 183a7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/customer/CustomerState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getName(): string
2323

2424
public static function isDeleted(CustomerInterface $customer): bool
2525
{
26-
return $customer->getState() === self::DELETED;
26+
return $customer->getState()?->getName() === self::DELETED;
2727
}
2828

2929
public static function deleted(): CustomerState

0 commit comments

Comments
 (0)