Skip to content

Commit

Permalink
refactor: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Sep 21, 2023
1 parent 6c5ff85 commit 3381509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/dao/settings-plans-billing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default {
computed: {
...mapGetters('dao', ['daoSettings', 'selectedDao', 'selectedDaoPlan']),
isFreePlan () { return this.selectedDaoPlan.price === 0 },
isFreePlan () { return !this.selectedDaoPlan.id },
isPlanModalOpen () { return [STATES.UPDATING_PLAIN, STATES.CREATING_SESSION].includes(this.state) },
plans () {
Expand Down Expand Up @@ -251,7 +251,7 @@ export default {
q-btn.q-px-xl.rounded-border.text-bold.q-ml-xs(
:disable="selectedDaoPlan.id === plan.id"
:label="$t('configuration.settings-plans-billing.plan.modal.cta')"
@click="upgrade(plan.id)"
@click="isFreePlan ? checkout(plan.id) : upgrade(plan.id)"
color="secondary"
no-caps
rounded
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/DhoSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DAO_ACTIVE_QUERY = `
communityMembersCount
price
id: planId
planName
name: planName
}
queryDao @cascade(fields: ["settings"]) {
Expand Down

0 comments on commit 3381509

Please sign in to comment.