88082: Issue #1136 - Forgot/Register links loading fix

This commit is contained in:
Kristof De Langhe
2022-03-01 15:11:25 +01:00
parent 9fc7b57157
commit 7924db512b
15 changed files with 223 additions and 42 deletions

View File

@@ -19,7 +19,7 @@ import {
END_USER_AGREEMENT_METADATA_FIELD,
EndUserAgreementService
} from '../../core/end-user-agreement/end-user-agreement.service';
import { getFirstCompletedRemoteData } from '../../core/shared/operators';
import { getFirstCompletedRemoteData, getFirstSucceededRemoteDataPayload } from '../../core/shared/operators';
/**
* Component that renders the create profile page to be used by a user registering through a token
@@ -56,7 +56,8 @@ export class CreateProfileComponent implements OnInit {
ngOnInit(): void {
this.registration$ = this.route.data.pipe(
map((data) => data.registration as Registration),
map((data) => data.registration as RemoteData<Registration>),
getFirstSucceededRemoteDataPayload(),
);
this.registration$.subscribe((registration: Registration) => {
this.email = registration.email;