Skip to content

Commit 3ef4392

Browse files
committed
fix: Only show profile updated successfully once
We have it in the if and else below too.
1 parent e969c27 commit 3ef4392

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/features/profile/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export function ProfileIndex() {
4444
updateUser(formData, {
4545
onSuccess: (data) => {
4646
form.reset(data);
47-
toast.success('Profile updated successfully!');
4847
if (formData.newPassword) {
4948
toast.success('Profile updated successfully!', {
5049
description: 'Please sign in with your new password.',

0 commit comments

Comments
 (0)