summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-02-02 11:35:10 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-02-02 11:35:10 -0500
commit556cbdf16898de7603b9f1c18e0ef07b379be59f (patch)
tree3649325fbc4e408e3914b42f0b1b4b934d1411c5
parentdont commit rate limit (diff)
downloadxssbook-556cbdf16898de7603b9f1c18e0ef07b379be59f.tar.gz
xssbook-556cbdf16898de7603b9f1c18e0ef07b379be59f.tar.bz2
xssbook-556cbdf16898de7603b9f1c18e0ef07b379be59f.zip
dont show load posts button if no posts
-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' : ''}">