🐛(frontend) fix inverted toast message for settings toggles
fixes inverted toast introduced in smart search PR Remove fixed inverted toast entry from changelog
This commit is contained in:
@@ -32,6 +32,7 @@ and this project adheres to
|
||||
- 🐛(front) fix math formulas and carousel translations
|
||||
- 🐛(helm) reverse liveness and readiness for backend deployment
|
||||
- 🐛(front) fix dark mode styling on chat messages
|
||||
- 🐛(front) fixed inverted toast for setting changes
|
||||
|
||||
## [0.0.13] - 2026-02-09
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ export const SettingsModal = ({ onClose, isOpen }: SettingsModalProps) => {
|
||||
});
|
||||
|
||||
const toastMessage = updatedValue
|
||||
? t(STATUS_I18N_KEYS[field].disabled)
|
||||
: t(STATUS_I18N_KEYS[field].enabled);
|
||||
? t(STATUS_I18N_KEYS[field].enabled)
|
||||
: t(STATUS_I18N_KEYS[field].disabled);
|
||||
showToast('success', toastMessage, 'check_circle', 3000);
|
||||
} catch (error) {
|
||||
console.error(`Error updating user settings for ${field}:`, error);
|
||||
|
||||
Reference in New Issue
Block a user