(state)
| 54 | }, |
| 55 | |
| 56 | basicSubscriptionForCurrentUser (state) { |
| 57 | if (!Array.isArray(state.products) || state.products.length === 0) { |
| 58 | return undefined |
| 59 | } |
| 60 | |
| 61 | const productsCollection = new Products() |
| 62 | productsCollection.add(state.products) |
| 63 | |
| 64 | return productsCollection.getBasicSubscriptionForUser(window.me).toJSON() |
| 65 | }, |
| 66 | |
| 67 | basicAnnualSubscriptionForCurrentUser (state) { |
| 68 | if (!Array.isArray(state.products) || state.products.length === 0) { |
nothing calls this directly
no test coverage detected