Update main.js

This commit is contained in:
DJObleezy 2025-03-26 08:16:30 -07:00 committed by GitHub
parent dd10921534
commit 7b7f386a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -791,7 +791,8 @@ function updateUI() {
"animation": "glowPulse 1s infinite"
});
} else {
const days = parseFloat(payoutText);
const daysMatch = payoutText.match(/(\d+)/);
const days = daysMatch ? parseFloat(daysMatch[1]) : NaN;
if (!isNaN(days)) {
if (days < 4) {
$("#est_time_to_payout").css({ "color": "#32CD32", "animation": "none" });