From 6f3ad7a617bed2df880caf06e9a992dbd6606a32 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sat, 9 Jul 2022 18:26:11 +0200 Subject: [PATCH] refined check for unnecessary setBio calls --- js/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/settings.js b/js/settings.js index 6a7a24e..7db4554 100644 --- a/js/settings.js +++ b/js/settings.js @@ -104,7 +104,7 @@ async function bioChanger() { } async function sendBio(str) { - if(document.getElementById("bio").placeholder != str) { + if(document.getElementById("bio").placeholder != str && str != "") { document.getElementById("bio").placeholder = str return await post("/api/setBio",{"Bio":str}) }