()
| 43 | } |
| 44 | |
| 45 | initialize () { |
| 46 | this.listenTo(this, 'add', function () { |
| 47 | const maxRedeemers = this.get('maxRedeemers') |
| 48 | if (_.isString(maxRedeemers)) { |
| 49 | return this.set('maxRedeemers', parseInt(maxRedeemers)) |
| 50 | } |
| 51 | }) |
| 52 | return super.initialize(...arguments) |
| 53 | } |
| 54 | |
| 55 | status () { |
| 56 | const endDate = this.get('endDate') |