Skip to content

Commit

Permalink
refactor: change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Dec 12, 2023
1 parent 6aefe2a commit 6020434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FormMigration/Steps/FundsAndDesignations.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public function process()
{
$fundsAndDesignationsAttributes = $this->getFundsAndDesignationsAttributes($this->formV2->id);

if (empty($fundsAndDesignationsAttributes)) {
if (count($fundsAndDesignationsAttributes['fund']) === 0 &&
count($fundsAndDesignationsAttributes['options']) === 0) {
return;
}

Expand Down

0 comments on commit 6020434

Please sign in to comment.