Skip to content

Commit

Permalink
Merge pull request #2559 from codecrafters-io/update-version-and-disc…
Browse files Browse the repository at this point in the history
…ount-logic

chore: update version number and refine discount logic
  • Loading branch information
rohitpaulk authored Jan 20, 2025
2 parents 8e386b3 + 28b5633 commit c2c43df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/pay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class PayController extends Controller {
get additionalCheckoutSessionProperties() {
return {
pricingFrequency: this.selectedPricingFrequency,
promotionalDiscount: this.activeDiscountForYearlyPlan,
promotionalDiscount: this.selectedPricingFrequency === 'yearly' ? this.activeDiscountForYearlyPlan : null,
regionalDiscount: this.shouldApplyRegionalDiscount ? this.model.regionalDiscount : null,
};
}
Expand Down
2 changes: 1 addition & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = function (environment) {

// Update the major version number to force all clients to update.
// The minor version doesn't do anything at the moment, might use in the future.
version: `27.0.${process.env.VERCEL_GIT_COMMIT_SHA?.slice(0, 7) || 'dev'}`,
version: `28.0.${process.env.VERCEL_GIT_COMMIT_SHA?.slice(0, 7) || 'dev'}`,
},
fastboot: {
hostWhitelist: [/^localhost:\d+$/],
Expand Down

0 comments on commit c2c43df

Please sign in to comment.