Browse Source

Had billing prompt users with subscribed status

Hiding based on user status and not only billing details allows easier
testing with fake users.
master
Immanuel Onyeka 10 months ago
parent
commit
171b508dee
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      components/app.vue

+ 2
- 1
components/app.vue View File

@@ -239,7 +239,8 @@ function start() {
fetchUser().then( u => { fetchUser().then( u => {
if (u.sub.customerId && if (u.sub.customerId &&
validStatuses.includes(u.sub.paymentStatus) && validStatuses.includes(u.sub.paymentStatus) &&
this.user.status != "Unsubscribed") { this.user.status != "Unsubscribed" ||
this.user.status != "Subscribed") {
return return
} }
// Payment must be updated // Payment must be updated


||||||
x
 
000:0
Loading…
Cancel
Save