Skip to content

Commit

Permalink
Revented unnacessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sobkiv committed Sep 25, 2023
1 parent a494d17 commit 7964a41
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,12 @@ export class CreateEditEventsComponent extends FormBaseComponent implements OnIn
? this.store.dispatch(EditEcoEventAction({ data: sendData }))
: this.store.dispatch(CreateEcoEventAction({ data: sendData }));

this.actionsSubj
.pipe(ofType(EventsActions.CreateEcoEventSuccess, EventsActions.EditEcoEventSuccess, EventsActions.ReceivedFailure))
.subscribe(() => {
this.isPosting = false;
this.escapeFromCreateEvent();
});
this.actionsSubj.pipe(ofType(EventsActions.CreateEcoEventSuccess, EventsActions.EditEcoEventSuccess)).subscribe(() => {
this.isPosting = false;
this.escapeFromCreateEvent();
});
}

private checkUserSigned(): boolean {
this.getUserId();
return this.userId != null && !isNaN(this.userId);
Expand Down

0 comments on commit 7964a41

Please sign in to comment.