Skip to content

Commit

Permalink
hotfix: disable submit for pending request to change plan
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Jan 11, 2025
1 parent c4d5c3a commit 5cf0e94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ChangePlanForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:checked="selectedPlan === availablePlan"
@change="selectedPlan = availablePlan"
:disabled="
userChangePlanRequest?.status !== 'pending' ||
props.currentPlan === availablePlan ||
availablePlan === userChangePlanRequest?.plan.name
"
Expand All @@ -40,6 +41,7 @@
</section>

<button
v-if="userChangePlanRequest?.status !== 'pending'"
type="submit"
:disabled="props.currentPlan === selectedPlan"
class="btn btn-outline-secondary btn-md px-4 border border-dark btn-block"
Expand Down

0 comments on commit 5cf0e94

Please sign in to comment.