mirror of
https://gitlab.com/sarlink/kyc.git
synced 2025-07-28 17:52:39 +00:00
[fix] Fix checkbox data
This commit is contained in:
@ -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`
|
||||
|
Reference in New Issue
Block a user