Commit 53fcbc1
committed
fix: replace hardcoded 'Free Plan' with dynamic tier label in TopNav
Reads tier from session.user.user_metadata.tier (set by Supabase JWT).
Capitalizes first letter: 'free' -> 'Free Plan', 'pro' -> 'Pro Plan'.
Falls back to 'Free Plan' when tier is not set.
Previously showed 'Free Plan' for all users including Pro and Enterprise.1 parent 3a5236d commit 53fcbc1
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
- frontend/src/components/dashboard
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments