Skip to content

Commit 58a3ec3

Browse files
authored
Update orcid-sync-settings.component.ts
1 parent 155f3f9 commit 58a3ec3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/app/item-page/orcid-page/orcid-sync-settings/orcid-sync-settings.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ export class OrcidSyncSettingsComponent implements OnInit {
156156
}
157157
}),
158158
).subscribe((remoteData: RemoteData<ResearcherProfile>) => {
159-
// hasSucceeded is true if the response is success or successStale
160-
if (remoteData.hasSucceeded) {
159+
if (remoteData.isSuccess) {
161160
this.notificationsService.success(this.translateService.get(this.messagePrefix + '.synchronization-settings-update.success'));
162161
this.settingsUpdated.emit();
163162
} else {

0 commit comments

Comments
 (0)