Fix subscription button text for different billing intervals #359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix subscription button text and enhance subscription handling
Problem:
getSubscription
function retrieves data without filtering by the user.Solution:
getUserSubscriptions
method insupabase/queries
to fetch user subscriptions, ordered by creation time in descending order.Pricing
component to handle user subscriptions:PricingPage
to fetch user and their subscriptions, and pass them to thePricing
component.Account
page to display the user's latest subscription and personal information.These changes improve the overall user experience by accurately reflecting the user's subscription status and providing appropriate actions based on their subscriptions.
If I have misunderstood any aspects of the problem or solution, please forgive my oversight. I look forward to your feedback and hope these changes align with the project's goals. Thank you for your understanding and support.