We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db44072 commit 703e094Copy full SHA for 703e094
exercises/tiered_pricing/solutions/xetxeberria-ts/src/tieredPricing.ts
@@ -13,8 +13,9 @@ export function tieredPricing(licenseAmount: number): number {
13
}
14
15
function calculateLicensePrice(licenseAmount: number): number {
16
+ const defaultUnitPrice = 299;
17
const applicableTier = priceTiers
18
.filter((tier) => licenseAmount >= tier.minAmount)
19
.pop();
- return applicableTier?.unitPrice || 299;
20
+ return applicableTier?.unitPrice || defaultUnitPrice;
21
0 commit comments