Skip to content

Commit d9fc027

Browse files
committed
ACP2E-4344: Error Invalid date when updating account information
1 parent 4691e2e commit d9fc027

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Customer/Block/Widget

1 file changed

+3
-3
lines changed

app/code/Magento/Customer/Block/Widget/Dob.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,12 +468,12 @@ private function setTwoMonthPlaces(string $format): string
468468
/**
469469
* Normalize the dob for a proper output on the frontend
470470
*
471-
* @param bool|string $value
471+
* @param bool|string|null $value
472472
* @return bool|string
473473
*/
474-
private function normalizedDobOutput(bool|string $value): bool|string
474+
private function normalizedDobOutput(bool|string|null $value): bool|string
475475
{
476-
if ($value === false) {
476+
if ($value === false || $value === null) {
477477
return false;
478478
}
479479
$locale = $this->localeResolver->getLocale();

0 commit comments

Comments
 (0)