From eacce79dc5087e473bc118b6f5c217f231a26278 Mon Sep 17 00:00:00 2001 From: Cadence Fish Date: Tue, 4 Feb 2020 04:17:03 +1300 Subject: [PATCH] Fix crash on users with no bio --- src/site/pug/user.pug | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/site/pug/user.pug b/src/site/pug/user.pug index d69475a..ada0602 100644 --- a/src/site/pug/user.pug +++ b/src/site/pug/user.pug @@ -32,7 +32,9 @@ html h1.full-name= `@${user.data.username}` if !user.fromReel p.structured-text.bio - +display_structured(user.getStructuredBio()) + - const bio = user.getStructuredBio() + if bio + +display_structured(bio) if user.data.external_url p.website a(href=user.data.external_url)= user.data.external_url