Skip to content

Commit

Permalink
fix: remove error state
Browse files Browse the repository at this point in the history
  • Loading branch information
ki8vi committed Aug 30, 2024
1 parent 9a18a87 commit b1395dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/auth/pipes/set-btn-icons.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class SetBtnIconsPipe implements PipeTransform {
init: isSignUp ? 'pi pi-user-plus' : 'pi pi-user',
load: 'pi pi-spin pi-spinner',
success: 'pi pi-verified',
error: 'pi pi-ban',
};

return stateToIconMap[state];
Expand Down
4 changes: 2 additions & 2 deletions src/app/auth/services/auth-service/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class AuthService implements OnDestroy {
this.isRegistrationSuccess$$.set(false);
this.errorMessage$$.set(err.error.reason);
this.userMessageService.showErrorMessage(USER_MESSAGE.REGISTRATION_ERROR);
this.signUpBtnState$$.set('error');
this.signUpBtnState$$.set('init');
},
});
}
Expand All @@ -74,7 +74,7 @@ export class AuthService implements OnDestroy {
loginForm.setErrors({ [err.error.reason]: true });
}
this.userMessageService.showErrorMessage(USER_MESSAGE.LOGIN_ERROR);
this.signInBtnState$$.set('error');
this.signInBtnState$$.set('init');
}
}

Expand Down

0 comments on commit b1395dd

Please sign in to comment.