From 79110748adb47c00c8a8cfbb66812ce1766d32ff Mon Sep 17 00:00:00 2001 From: Sam Richards Date: Thu, 16 Dec 2021 18:58:34 -0500 Subject: [PATCH] Add null checks on registryInfo --- vue-app/src/views/JoinLanding.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vue-app/src/views/JoinLanding.vue b/vue-app/src/views/JoinLanding.vue index 40e0686fe..6fd8ebab8 100644 --- a/vue-app/src/views/JoinLanding.vue +++ b/vue-app/src/views/JoinLanding.vue @@ -176,15 +176,15 @@ export default class JoinLanding extends Vue { } get deposit(): BigNumber | null { - return this.registryInfo.deposit + return this.registryInfo?.deposit } get depositToken(): string | null { - return this.registryInfo.depositToken + return this.registryInfo?.depositToken } get recipientCount(): number | null { - return this.registryInfo.recipientCount + return this.registryInfo?.recipientCount } private get signUpDeadline(): DateTime { @@ -192,7 +192,7 @@ export default class JoinLanding extends Vue { } get spacesRemaining(): number | null { - if (!this.$store.state.currentRound) { + if (!this.$store.state.currentRound || !this.registryInfo) { return null } return (