Skip to content

Commit

Permalink
UNZER-533 Fix false error showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Jan 9, 2025
1 parent f203932 commit 66093cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Controller/Admin/ModuleConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ private function saveMerchantIdentifier(string $systemMode): void
$oldValue = $this->moduleSettings->getApplePayMerchantIdentifier();

$this->setIsUpdate($oldValue, $newValue);

$isValid = $this->validateCredentialsForSaving($newValue, $errorIds);

if ($isValid) {
Expand Down Expand Up @@ -428,7 +427,7 @@ private function addErrorToDisplay(string $translateId): void

private function setIsUpdate(?string $oldValue, ?string $newValue): bool
{
$this->isUpdate = $oldValue !== $newValue;
$this->isUpdate = ($oldValue !== $newValue) && !empty($newValue);
return $this->isUpdate;
}

Expand Down

0 comments on commit 66093cb

Please sign in to comment.