Skip to content

Commit

Permalink
[#1271] Solved null error and change error message if redirect url no…
Browse files Browse the repository at this point in the history
…t found.

Signed-off-by: Amol Sontakke <amols@proximabiz.com>
  • Loading branch information
amolsontakke3576 committed Jun 19, 2020
1 parent e877c24 commit 1999ff1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ export class ClaDashboardComponent implements OnInit {

onExitEasyCLA() {
const redirectUrl = JSON.parse(this.storageService.getItem('redirect'));
if (redirectUrl !== undefined) {
console.log(redirectUrl);
if (redirectUrl !== null) {
window.open(redirectUrl, '_self');
} else {
const error = 'Unable to fetch redirect URL, please redirect manually.';
const error = 'Unable to fetch redirect URL.';
this.alertService.error(error);
}
}
Expand Down

0 comments on commit 1999ff1

Please sign in to comment.