Update orcid-sync-settings.component.ts

This commit is contained in:
enea4science
2023-06-12 09:50:26 +02:00
committed by GitHub
parent 155f3f9a12
commit 58a3ec3972

View File

@@ -156,8 +156,7 @@ export class OrcidSyncSettingsComponent implements OnInit {
}
}),
).subscribe((remoteData: RemoteData<ResearcherProfile>) => {
// hasSucceeded is true if the response is success or successStale
if (remoteData.hasSucceeded) {
if (remoteData.isSuccess) {
this.notificationsService.success(this.translateService.get(this.messagePrefix + '.synchronization-settings-update.success'));
this.settingsUpdated.emit();
} else {