File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 102102
103103# Pricing
104104PRO_TIERS_TABLE = {
105+ "Pro 25" : {"price" : 25 , "credits" : 500 },
105106 "Pro 50" : {"price" : 50 , "credits" : 1000 },
106107 "Pro 100" : {"price" : 100 , "credits" : 2000 },
107108 "Pro 250" : {"price" : 250 , "credits" : 5000 },
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class SelectedTier(TypedDict):
2424
2525
2626class ProTierState (rx .State ):
27- credits : rx .Field [int ] = rx .field (default = 1000 )
27+ credits : rx .Field [int ] = rx .field (default = PRO_TIERS_TABLE [ "Pro 25" ][ "credits" ] )
2828
2929 @rx .event
3030 def redirect_to_billing (self , yearly : bool = False ):
@@ -42,7 +42,7 @@ def selected_tier(self) -> SelectedTier:
4242 for tier_name , tier_data in PRO_TIERS_TABLE .items ():
4343 if tier_data ["credits" ] == self .credits :
4444 return SelectedTier (tier = tier_name , price = tier_data ["price" ])
45- return SelectedTier (tier = "Pro" , price = PRO_TIERS_TABLE ["Pro 50 " ]["price" ])
45+ return SelectedTier (tier = "Pro 25 " , price = PRO_TIERS_TABLE ["Pro 25 " ]["price" ])
4646
4747
4848class Feature (NamedTuple ):
You can’t perform that action at this time.
0 commit comments