Skip to content

Commit

Permalink
Add null checks to registryInfo [Fixes #483]
Browse files Browse the repository at this point in the history
  • Loading branch information
samajammin committed Dec 16, 2021
1 parent a367d69 commit 367be52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vue-app/src/views/JoinLanding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,23 @@ 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 {
return this.$store.state.currentRound?.signUpDeadline
}
get spacesRemaining(): number | null {
if (!this.$store.state.currentRound) {
if (!this.$store.state.currentRound || !this.registryInfo) {
return null
}
return (
Expand Down

0 comments on commit 367be52

Please sign in to comment.