refactor: rewrite if statement

This commit is contained in:
P. Reis 2024-10-19 23:16:04 -03:00
parent 0abd567824
commit 7d27a6e890

View file

@ -224,7 +224,7 @@ const createStatusController: AppController = async (c) => {
dittoZapSplit[zapPubkey].message,
]);
}
if (pubkey in dittoZapSplit === false) {
if (totalSplit && !dittoZapSplit[pubkey]) {
tags.push(['zap', pubkey, Conf.relay, Math.max(0, 100 - totalSplit).toString()]);
}
}