[fix] Fix checkbox data

This commit is contained in:
2024-02-11 14:02:01 +05:00
parent 1019bb6f7a
commit 5083316599
2 changed files with 8 additions and 3 deletions

View File

@ -11,7 +11,7 @@ async function sendInfo(filepath, details) {
let caption = "";
for (const key in details) {
if (key.startsWith("is")) {
details[key] = details[key] === "on" ? "Yes" : "No"
details[key] = details[key] ? "Yes" : "No"
}
caption += `${kebabToTitleCase(key)}: \`${details[key]}\`\n`