Skip to content

Commit

Permalink
[Vue] Use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Jul 11, 2021
1 parent 167f537 commit 7fa18e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class ResetPasswordFinish extends Vue {
};

created(): void {
if (this.$route !== undefined && this.$route.query !== undefined && this.$route.query.key !== undefined) {
if (this?.$route?.query?.key !== undefined) {
this.key = this.$route.query.key;
}
this.keyMissing = !this.key;
Expand Down

0 comments on commit 7fa18e7

Please sign in to comment.