refined check for unnecessary setBio calls

This commit is contained in:
Mystikfluu 2022-07-09 18:26:11 +02:00
parent bbe614b2ca
commit 6f3ad7a617

View File

@ -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})
}