From 367be523a0c416e40bb1505c8dde7ad6dc65cbb7 Mon Sep 17 00:00:00 2001 From: Sam Richards Date: Thu, 16 Dec 2021 18:51:52 -0500 Subject: [PATCH] Add null checks to registryInfo [Fixes #483] --- 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 81a41a19f..7b2fa93da 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 (