Skip to content

Commit

Permalink
feat: replace current_term_end with next_billing_at
Browse files Browse the repository at this point in the history
this closes #236
  • Loading branch information
marianzburlea committed Sep 18, 2019
1 parent af46e83 commit a61102f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/component/top-menu/top-menu.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TopMenu = () => {
.then(snap => {
const data = snap.data()
const isAdmin = (data && data.isAdmin) || false
const { current_term_end, plan_id, customer_id } = (data && data.subscription) || {}
const { current_term_end, next_billing_at, plan_id, customer_id } = (data && data.subscription) || {}
db.collection('user')
.doc(uid)
.set({ displayName, photoURL, email }, { merge: true });
Expand All @@ -47,6 +47,7 @@ const TopMenu = () => {
email,
plan_id,
current_term_end,
next_billing_at,
customer_id,
isAdmin
}
Expand Down

0 comments on commit a61102f

Please sign in to comment.