We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents efedd10 + b6dc8a8 commit f09a26fCopy full SHA for f09a26f
1 file changed
src/app/item-page/orcid-page/orcid-sync-settings/orcid-sync-settings.component.ts
@@ -156,7 +156,8 @@ export class OrcidSyncSettingsComponent implements OnInit {
156
}
157
}),
158
).subscribe((remoteData: RemoteData<ResearcherProfile>) => {
159
- if (remoteData.isSuccess) {
+ // hasSucceeded is true if the response is success or successStale
160
+ if (remoteData.hasSucceeded) {
161
this.notificationsService.success(this.translateService.get(this.messagePrefix + '.synchronization-settings-update.success'));
162
this.settingsUpdated.emit();
163
} else {
0 commit comments