From 556cbdf16898de7603b9f1c18e0ef07b379be59f Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 2 Feb 2023 11:35:10 -0500 Subject: [PATCH] dont show load posts button if no posts --- public/js/profile.js | 5 +++-- 1 file 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() { ` - - append(postsh) + if (data.posts.length > 0) { + append(postsh) + } const about = `