Skip to content
Permalink
Browse files

Linted delete blog page

  • Loading branch information...
davidmerfield committed Mar 12, 2019
1 parent 6dd9cf9 commit 66c390b9f1d37fd2f0b92fe7c7f4be612ff1404f
Showing with 5 additions and 2 deletions.
  1. +5 −2 app/dashboard/routes/account/delete.js
@@ -68,9 +68,12 @@ function loadBlogToDelete(req, res, next) {
}

function calculateSubscriptionChange(req, res, next) {

// You must pay for at least one blog to keep an account open
if (req.user.subscription.plan && req.user.subscription.quantity > 1 && req.user.subscription.plan.amount) {
if (
req.user.subscription.plan &&
req.user.subscription.quantity > 1 &&
req.user.subscription.plan.amount
) {
res.locals.reduction = pretty(req.user.subscription.plan.amount);
}

0 comments on commit 66c390b

Please sign in to comment.
You can’t perform that action at this time.