Skip to content

Commit

Permalink
fix: Remove trial param from checking cancel subscription button (Roc…
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris authored Dec 21, 2023
1 parent d6a8360 commit 077d04f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lucky-apricots-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed an issue allowing admin user cancelling subscription when license's trial param is provided
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const SubscriptionPage = () => {
)}
</Grid>
<UpgradeToGetMore activeModules={activeModules} isEnterprise={isEnterprise}>
{Boolean(licensesData?.trial || licensesData?.license?.information.cancellable) && (
{Boolean(licensesData?.license?.information.cancellable) && (
<Button loading={removeLicense.isLoading} secondary danger onClick={() => removeLicense.mutate()}>
{t('Cancel_subscription')}
</Button>
Expand Down

0 comments on commit 077d04f

Please sign in to comment.