From 1e7601d647a1ae9a13ede7f4c841d8c510d8fd67 Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 14 Jun 2018 09:03:14 +0100 Subject: [PATCH] Add null check to subscription dash --- services/web/app/views/subscriptions/dashboard.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/subscriptions/dashboard.pug b/services/web/app/views/subscriptions/dashboard.pug index cc07e2845b..fee6f0dbf1 100644 --- a/services/web/app/views/subscriptions/dashboard.pug +++ b/services/web/app/views/subscriptions/dashboard.pug @@ -118,14 +118,14 @@ block content a(href="/subscription/group").btn.btn-primary !{translate("manage_group")} hr - if v1Subscriptions.has_subscription + if v1Subscriptions && v1Subscriptions.has_subscription p | You are subscribed to Overleaf through Overleaf v1 p a.btn.btn-primary(href=settings.overleaf.host+"/users/edit#status") Manage v1 Subscription hr - if v1Subscriptions.teams && v1Subscriptions.teams.length > 0 + if v1Subscriptions && v1Subscriptions.teams && v1Subscriptions.teams.length > 0 for team in v1Subscriptions.teams p | You are a member of the Overleaf v1 team: #{team.name}