rollback change for orcid sync settings

This commit is contained in:
Enea Jahollari
2023-06-06 14:13:13 +02:00
parent f16befb088
commit dbccda4330

View File

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