From b1b8f1abd4c17fc354f59323d32b3dde6a86daec Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Sat, 25 Jan 2025 06:18:34 -0500 Subject: [PATCH] fix more rounding errors --- assets/js/ARBoard.js | 2 +- assets/js/AdminBoard.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/ARBoard.js b/assets/js/ARBoard.js index 200d0a1..2871e3d 100644 --- a/assets/js/ARBoard.js +++ b/assets/js/ARBoard.js @@ -592,7 +592,7 @@ const checkAndDisplayActions = async (adminYes, name, cardIdentifier) => { } else if ((minterAdmins) && (minterAdmins.length > 1) && isBlockPassed){ const totalAdmins = minterAdmins.length const fortyPercent = totalAdmins * 0.40 - minAdminCount = Math.round(fortyPercent) + minAdminCount = Math.ceil(fortyPercent) console.warn(`this is another check to ensure minterAdmin group has more than 1 admin. IF so we will calculate the 40% needed for GROUP_APPROVAL, that number is: ${minAdminCount}`) } const addressInfo = await getNameInfo(name) diff --git a/assets/js/AdminBoard.js b/assets/js/AdminBoard.js index 6aec6af..c65c57d 100644 --- a/assets/js/AdminBoard.js +++ b/assets/js/AdminBoard.js @@ -1049,7 +1049,7 @@ const checkAndDisplayRemoveActions = async (adminYes, name, cardIdentifier) => { } else if ((minterAdmins) && (minterAdmins.length > 1) && isBlockPassed){ const totalAdmins = minterAdmins.length const fortyPercent = totalAdmins * 0.40 - minAdminCount = Math.round(fortyPercent) + minAdminCount = Math.ceil(fortyPercent) console.warn(`this is another check to ensure minterAdmin group has more than 1 admin. IF so we will calculate the 40% needed for GROUP_APPROVAL, that number is: ${minAdminCount}`) } if (isBlockPassed && userState.isMinterAdmin) {