mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
babel: enable optional chaining (#13222)
* babel: enable optional chaining * fix lint
This commit is contained in:
@@ -740,7 +740,7 @@ export default {
|
||||
};
|
||||
}
|
||||
|
||||
if (this.selectedConversation && this.selectedConversation.key) {
|
||||
if (this.selectedConversation?.key) {
|
||||
if (this.user.inbox.blocks.includes(this.selectedConversation.key)) {
|
||||
return {
|
||||
title: this.$t('PMDisabledCaptionTitle'),
|
||||
@@ -771,7 +771,7 @@ export default {
|
||||
};
|
||||
},
|
||||
selectedConversationFaceAvatarClass () {
|
||||
if (this.selectedConversation && this.selectedConversation.contributor) {
|
||||
if (this.selectedConversation?.contributor) {
|
||||
return `tier${this.selectedConversation.contributor.level}`;
|
||||
}
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user