set voted card colors to avg of current & previous

This commit is contained in:
QuickMythril 2025-01-28 04:26:24 -05:00
parent da783c43ba
commit 9b088fa588

View File

@ -1329,9 +1329,9 @@ const createEncryptedCardHTML = async (cardData, pollResults, cardIdentifier, co
const removeActionsHtml = verifiedAddress ? await checkAndDisplayRemoveActions(adminYes, verifiedAddress, cardIdentifier) : await checkAndDisplayRemoveActions(adminYes, verifiedName, cardIdentifier)
showRemoveHtml = removeActionsHtml
if (userVote === 0) {
cardColorCode = "rgba(1, 65, 39, 0.41)"; // or any green you want
cardColorCode = "rgba(1, 128, 20, 0.35)"; // or any green you want
} else if (userVote === 1) {
cardColorCode = "rgba(55, 12, 12, 0.61)"; // or any red you want
cardColorCode = "rgba(124, 6, 6, 0.45)"; // or any red you want
}
if (banTransactions.some((banTx) => banTx.groupId === 694 && banTx.offender === accountAddress)){