houdini/client/js/campaigns/show/is-sold-out.js

2 lines
71 B
JavaScript

module.exports = g => g.quantity && (g.quantity - g.total_gifts <= 0)