From 7e0e484790d95ad1f6321ce93750cf85ebadf962 Mon Sep 17 00:00:00 2001 From: Ricardo Campos Date: Thu, 4 Sep 2025 13:58:30 -0300 Subject: [PATCH] fix: missing settings change --- src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0f20a15..d7189f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -213,7 +213,7 @@ async function handleLogout() { } async function handleSettings() { - const showSettings = getButtonById('settingsBtn').textContent === 'Settings' || getButtonById('settingsBtn').textContent === '⚙️ Settings'; + const showSettings = getButtonById('settingsBtn').textContent.includes('Settings'); if (showSettings) { showLoading(); @@ -237,7 +237,8 @@ async function handleSettings() { getInputById('fiberGoal').value = ''; } - getButtonById('settingsBtn').textContent = 'Back'; + getButtonById('settingsBtn').textContent = '🔙 Back'; + getButtonById('settingsBtnMobile').textContent = '🔙 Back'; appContent?.classList.add('hidden'); settingsContent?.classList.remove('hidden'); @@ -252,6 +253,7 @@ async function handleSettings() { appContent?.classList.remove('hidden'); settingsContent?.classList.add('hidden'); getButtonById('settingsBtn').textContent = '⚙️ Settings'; + getButtonById('settingsBtnMobile').textContent = '⚙️ Settings'; } }