Skip to content

Commit

Permalink
Show a toast on Error in SignOutHandler (#526)
Browse files Browse the repository at this point in the history
* Sho a toast on Error in SignOutHandler

* style: fix prettier issues

---------

Co-authored-by: Prakash <[email protected]>
  • Loading branch information
yesyash and prakashchoudhary07 authored Nov 22, 2023
1 parent 86b2c5b commit 2e0b598
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ENV from 'website-my/config/environment';
export default class ApplicationController extends Controller {
@service router;
@service featureFlag;
@service toast;
@tracked toVisible = this.checkDeviceType();

GITHUB_URL = GITHUB_URL;
Expand All @@ -33,6 +34,9 @@ export default class ApplicationController extends Controller {
}
} catch (err) {
console.error('Error: ', err);
this.toast.error(
'Unable to sign out. Something went wrong. Please try again.'
);
}
}

Expand Down

0 comments on commit 2e0b598

Please sign in to comment.