Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fredteumer committed Aug 29, 2024
1 parent 52d5523 commit 3ae4df2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/components/AccountPlan/AccountPlan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const UnlimitedList = () => {
return (
<List center icon={<LuCheck size="18px" />} size="sm" spacing="xl">
<List.Item>Unlimited relays per month</List.Item>
<List.Item>100,000 relays free per month</List.Item>
<List.Item>First 100,000 relays per month free</List.Item>
<List.Item>No throughput limit</List.Item>
<List.Item>Community Discord support</List.Item>
<List.Item>Access all supported chains</List.Item>
Expand Down
4 changes: 2 additions & 2 deletions app/utils/planUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export const getPlanName = (planType: PayPlanType) => {
return "Enterprise"
}
case PayPlanType.PlanUnlimited: {
return "Enterprise"
return "Unlimited"
}
case PayPlanType.PlanFree: {
return "Enterprise"
return "Free"
}
default: {
return "Legacy"
Expand Down
5 changes: 1 addition & 4 deletions app/utils/updatePlan.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@ export const updatePlan = async ({
input: { accountID: id, payPlanType: planType },
}

if (limit) {
options.input.monthlyUserLimit = limit
}
if (subscription) {
options.input.stripeSubscriptionID = subscription
}

await portalAdmin.adminUpdateAccount(options)

if (planType !== PayPlanType.FreetierV0) {
if (planType !== PayPlanType.PlanFree) {
await triggerSubscriptionActionNotification({
planType,
accountId: id,
Expand Down

0 comments on commit 3ae4df2

Please sign in to comment.