Skip to content

Commit

Permalink
fix: not eligible plan in data provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois-Gomis committed Jan 9, 2025
1 parent 27641bc commit 3576b24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/includes/Blocks/BlocksDataService.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ private function format_eligibility_for_blocks( $eligibilities ) {
$gateways_keys[ $gateway_mode ]['credit'] => [],
];
foreach ( $eligibilities as $plan_key => $eligibility ) {

if ( ! $eligibility->isEligible() ) {
continue;
}
/** @var Eligibility $eligibility */
$installment_count = $eligibility->getInstallmentsCount();
$deferred_days = $eligibility->getDeferredDays();
Expand Down

0 comments on commit 3576b24

Please sign in to comment.