From b730de4175e61a86443fa76de4e700eb86f0a12a Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 11 Oct 2025 05:16:39 +0300 Subject: [PATCH] Revert "Fix autopay day parsing in mini app" --- miniapp/index.html | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/miniapp/index.html b/miniapp/index.html index f7ff6d46..63a940a1 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -8937,25 +8937,10 @@ function coercePositiveInt(value, fallback = null) { const numeric = coerceNumber(value, null); - let candidate = numeric; - - if (candidate === null || Number.isNaN(candidate)) { - if (typeof value === 'string') { - const normalized = value.trim(); - if (normalized) { - const match = normalized.match(/\d+/); - if (match) { - candidate = Number(match[0]); - } - } - } - } - - if (candidate === null || Number.isNaN(candidate)) { + if (numeric === null || Number.isNaN(numeric)) { return fallback; } - - const intValue = Math.trunc(candidate); + const intValue = Math.trunc(numeric); return Number.isFinite(intValue) && intValue >= 0 ? intValue : fallback; }