Skip to content

Commit

Permalink
fix: avoid app-link error on dashboard when subscription is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Feb 14, 2022
1 parent 7e9b4ea commit 1953aa7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/views/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
</template>
</DashboardButtonTile>
</AppLink>
<AppLink :to="{ name: routeNames.userSubscriptions }">
<DashboardButtonTile
v-if="isSubscriptionEnabled"
data-test="btn-subscriptions"
>
<AppLink
v-if="isSubscriptionEnabled"
:to="{ name: routeNames.userSubscriptions }"
>
<DashboardButtonTile data-test="btn-subscriptions">
<template #title>
{{ $t("Dashboard.subscriptionsTileTitle") }}
</template>
Expand Down

0 comments on commit 1953aa7

Please sign in to comment.