mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
12 lines
323 B
JavaScript
12 lines
323 B
JavaScript
|
/**
|
||
|
* If the user changes to a less expensive plan, we shouldn't apply the change immediately.
|
||
|
* This is to avoid unintended/artifical credits on users Recurly accounts.
|
||
|
*/
|
||
|
function shouldPlanChangeAtTermEnd(oldPlan, newPlan) {
|
||
|
return oldPlan.price > newPlan.price
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
shouldPlanChangeAtTermEnd,
|
||
|
}
|