Skip to content

Commit 27e4459

Browse files
gregnrsweatybridge
andauthored
refactor: cleaner conditional logic
Co-authored-by: Han Qiao <qiao@supabase.io>
1 parent 6180ffa commit 27e4459

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/mcp-server-supabase/src/pricing.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ export async function getNextProjectCost(
5454

5555
if (org.plan !== 'free') {
5656
// If the organization is on a paid plan, the first project is included
57-
if (activeProjects.length === 0) {
58-
amount = 0;
59-
} else {
57+
if (activeProjects.length > 0) {
6058
amount = PROJECT_COST_MONTHLY;
6159
}
6260
}

0 commit comments

Comments
 (0)