Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix login notification checkbox (#342)

Maksim Mrug4cb4f641640b
diff --git a/app/pages/UserSettings/UserSettings.tsx b/app/pages/UserSettings/UserSettings.tsx
index b2bff459d..cf85cdd36 100644
--- a/app/pages/UserSettings/UserSettings.tsx
+++ b/app/pages/UserSettings/UserSettings.tsx
@@ -649,15 +649,17 @@ const UserSettings = ({
handleIntegrationSave={handleIntegrationSave}
genericError={genericError}
/>
- <Checkbox
- checked={user.receiveLoginNotifications}
- onChange={handleReceiveLoginNotifications}
- disabled={settingUpdating}
- name='active'
- id='active'
- className='mt-4'
- label={t('profileSettings.receiveLoginNotifications')}
- />
+ {user.isTelegramChatIdConfirmed && (
+ <Checkbox
+ checked={user.receiveLoginNotifications}
+ onChange={handleReceiveLoginNotifications}
+ disabled={settingUpdating}
+ name='receiveLoginNotifications'
+ id='receiveLoginNotifications'
+ className='mt-4'
+ label={t('profileSettings.receiveLoginNotifications')}
+ />
+ )}
<hr className='mt-5 border-gray-200 dark:border-gray-600' />
{/* API access setup */}