Skip to content

Commit

Permalink
Fix toast in user management (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Oct 1, 2024
1 parent 7574e83 commit f046f17
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/pages/settings/tabs/UserManagementSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ function UserManagementSettings() {
if (isEqual(selectedUser, user)) {
toast.dismiss('unsaved');
} else {
toast.info('', 'You have unsaved changes!', {
autoClose: false,
draggable: false,
closeOnClick: false,
toastId: 'unsaved',
});
toast.info(
'Unsaved Changes',
'Please save before leaving this page.',
{ autoClose: false, position: 'top-right', toastId: 'unsaved' },
);
}
}, [selectedUser, users]);

Expand Down

0 comments on commit f046f17

Please sign in to comment.