Skip to content

Commit

Permalink
use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-bompart committed Jul 8, 2020
1 parent fe4f626 commit 351c9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UserActions/UserActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class UserActions extends Component {
this.renderNoActions();
}
} catch (e) {
if (e && e.statusCode === 404) {
if (e?.statusCode === 404) {
this.renderEnablePrompt();
} else {
this.renderNoActions();
Expand Down

0 comments on commit 351c9f6

Please sign in to comment.