Skip to content

Commit

Permalink
Change options order index
Browse files Browse the repository at this point in the history
  • Loading branch information
tzhelyazkova committed Dec 12, 2018
1 parent df16dc1 commit f4f205a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/config/campaigns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ amount_options:
start: "2018-12-12 00:00:00"
end: "2018-12-25 23:59:59"
buckets:
- "5to300_0"
- "5to300"
- "5to100"
- "15to250"
Expand Down
4 changes: 3 additions & 1 deletion src/Factories/ChoiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public function getMembershipCallToActionTemplate(): string {
}

public function getAmountOption(): array {
if ( $this->featureToggle->featureIsActive( 'campaigns.amount_options.5to300' ) ) {
if ( $this->featureToggle->featureIsActive( 'campaigns.amount_options.5to300_0' ) ) {
return $this->getAmountOptionInEuros( [ 500, 1500, 2500, 5000, 7500, 10000, 25000, 30000 ] );
} elseif ( $this->featureToggle->featureIsActive( 'campaigns.amount_options.5to300' ) ) {
return $this->getAmountOptionInEuros( [ 500, 1500, 2500, 5000, 7500, 10000, 25000, 30000 ] );
} elseif ( $this->featureToggle->featureIsActive( 'campaigns.amount_options.5to100' ) ) {
return $this->getAmountOptionInEuros( [ 500, 1000, 1500, 2000, 3000, 5000, 7500, 10000 ] );
Expand Down

0 comments on commit f4f205a

Please sign in to comment.