We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 21d400d + 67f0398 commit 43ce65aCopy full SHA for 43ce65a
1 file changed
src/app/app-modules/data-sync/workarea/workarea.component.ts
@@ -66,10 +66,8 @@ export class WorkareaComponent
66
67
ngOnInit() {
68
this.assignSelectedLanguage();
69
- if (
70
- this.sessionstorage.getItem('serverKey') !== null ||
71
- this.sessionstorage.getItem('serverKey') !== undefined
72
- ) {
+ const serverKey = this.sessionstorage.getItem('serverKey');
+ if (serverKey) {
73
this.getDataSYNCGroup();
74
} else {
75
this.router.navigate(['datasync/sync-login']);
@@ -348,8 +346,7 @@ export class WorkareaComponent
348
346
this.dataSyncService
349
347
.inventorySyncDownloadData(vanID)
350
.subscribe((res: any) => {
351
- if (res.statusCode === 200) {
352
- } else {
+ if (res.statusCode !== 200) {
353
this.confirmationService.alert(res.errorMessage, 'error');
354
}
355
});
0 commit comments