From 8adec873194ff7beaaa060bd95171f573c2ec58a Mon Sep 17 00:00:00 2001 From: Moritz Sternemann Date: Wed, 27 Mar 2024 19:22:00 +0100 Subject: [PATCH] chore: Adjust distinguished-winners feature name --- components/ProfileSubmission.vue | 2 +- components/profile/ProfileFormSubmission.vue | 2 +- pages/s/_id/_year.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ProfileSubmission.vue b/components/ProfileSubmission.vue index e0292cc..5ebef4b 100644 --- a/components/ProfileSubmission.vue +++ b/components/ProfileSubmission.vue @@ -187,7 +187,7 @@ export default class ProfileSubmission extends Vue { } get yearHasDistinguishedWinnerFeature(): boolean { - return this.wwdcYear?.hasFeature('distinguished-winner') ?? false + return this.wwdcYear?.hasFeature('distinguished-winners') ?? false } get formData(): { diff --git a/components/profile/ProfileFormSubmission.vue b/components/profile/ProfileFormSubmission.vue index 4753858..6d3f61f 100644 --- a/components/profile/ProfileFormSubmission.vue +++ b/components/profile/ProfileFormSubmission.vue @@ -137,7 +137,7 @@ class ProfileFormSubmission extends Vue { ] get yearHasDistinguishedWinnerFeature(): boolean { - return this.features.includes('distinguished-winner') + return this.features.includes('distinguished-winners') } } diff --git a/pages/s/_id/_year.vue b/pages/s/_id/_year.vue index 067ff3d..67d72b3 100644 --- a/pages/s/_id/_year.vue +++ b/pages/s/_id/_year.vue @@ -122,7 +122,7 @@ export default class ScholarProfileSubmission extends Vue { if (!this.wwdcYear) return false const submissionIsDistinguishedWinner = this.yearInfo?.isDistinguishedWinner ?? false - return this.wwdcYear.hasFeature('distinguished-winner') && submissionIsDistinguishedWinner + return this.wwdcYear.hasFeature('distinguished-winners') && submissionIsDistinguishedWinner } get media(): object[] {