diff --git a/src/components/MembersList.vue b/src/components/MembersList.vue index f29472c1..b2a0106b 100644 --- a/src/components/MembersList.vue +++ b/src/components/MembersList.vue @@ -211,7 +211,7 @@ interface DecryptedMember { }) export default class MembersList extends Vue { $notify!: (notification: NotificationIface, timeout?: number) => void; - + notify!: ReturnType; libsUtil = libsUtil; @@ -231,7 +231,7 @@ export default class MembersList extends Vue { async created() { this.notify = createNotifyHelpers(this.$notify); - + const settings = await this.$accountSettings(); this.activeDid = settings.activeDid || ""; this.apiServer = settings.apiServer || ""; @@ -505,10 +505,7 @@ export default class MembersList extends Vue { if (err instanceof Error && err.message?.indexOf("already exists") > -1) { message = "This person is already in your contact list."; } - this.notify.error( - message, - TIMEOUTS.LONG, - ); + this.notify.error(message, TIMEOUTS.LONG); } } } diff --git a/src/components/TopMessage.vue b/src/components/TopMessage.vue index 24c2aa40..519a0585 100644 --- a/src/components/TopMessage.vue +++ b/src/components/TopMessage.vue @@ -40,7 +40,7 @@ export default class TopMessage extends Vue { async mounted() { this.notify = createNotifyHelpers(this.$notify); - + try { // Ultra-concise cached settings loading - replaces 50+ lines of logic! const settings = await this.$accountSettings(undefined, { @@ -62,10 +62,7 @@ export default class TopMessage extends Vue { this.message = "You are using prod, user " + didPrefix; } } catch (err: unknown) { - this.notify.error( - JSON.stringify(err), - TIMEOUTS.MODAL, - ); + this.notify.error(JSON.stringify(err), TIMEOUTS.MODAL); } } } diff --git a/src/components/UserNameDialog.vue b/src/components/UserNameDialog.vue index 2aaabacd..f4d314ab 100644 --- a/src/components/UserNameDialog.vue +++ b/src/components/UserNameDialog.vue @@ -37,7 +37,6 @@