summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/js/profile.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/js/profile.js b/public/js/profile.js
index 40e6354..bde0654 100644
--- a/public/js/profile.js
+++ b/public/js/profile.js
@@ -93,8 +93,9 @@ function render() {
</div>
`
-
- append(postsh)
+ if (data.posts.length > 0) {
+ append(postsh)
+ }
const about = `
<div id="about" class="post ${posts ? 'hidden' : ''}">