@@ -139,19 +139,6 @@ const getPriceAndRequestsTextAndTooltip = ({
139139 const creditsText = (
140140 < Trans > { Math . max ( 0 , availableCredits ) } GDevelop credits available</ Trans >
141141 ) ;
142- const priceInCredits = price . priceInCredits ;
143- const maximumPriceInCredits =
144- ( price . variablePrice &&
145- price . variablePrice [ aiRequestMode ] &&
146- price . variablePrice [ aiRequestMode ] [ 'default' ] &&
147- price . variablePrice [ aiRequestMode ] [ 'default' ] . maximumPriceInCredits ) ||
148- null ;
149- const minimumPriceInCredits =
150- ( price . variablePrice &&
151- price . variablePrice [ aiRequestMode ] &&
152- price . variablePrice [ aiRequestMode ] [ 'default' ] &&
153- price . variablePrice [ aiRequestMode ] [ 'default' ] . minimumPriceInCredits ) ||
154- null ;
155142
156143 const remainingDaysBeforeReset = quota . resetsAt
157144 ? Math . ceil ( ( quota . resetsAt - Date . now ( ) ) / ( 1000 * 60 * 60 * 24 ) )
@@ -165,18 +152,9 @@ const getPriceAndRequestsTextAndTooltip = ({
165152
166153 const tooltipText = (
167154 < ColumnStackLayout noMargin >
168- < Line noMargin >
169- < Trans >
170- { currentQuotaText } (out of { quota . max } ).
171- </ Trans >
172- { remainingDaysBeforeResetText }
173- </ Line >
174- < Line noMargin >
175- < Trans >
176- A request costs { minimumPriceInCredits } -{ maximumPriceInCredits } AI
177- credits, or { priceInCredits } GDevelop credits.
178- </ Trans >
179- </ Line >
155+ { remainingDaysBeforeResetText && (
156+ < Line noMargin > { remainingDaysBeforeResetText } </ Line >
157+ ) }
180158 < Line noMargin >
181159 < Link
182160 href = { getHelpLink ( '/interface/ai' ) }
@@ -196,11 +174,7 @@ const getPriceAndRequestsTextAndTooltip = ({
196174 < LineStackLayout alignItems = "center" noMargin >
197175 { shouldShowCredits && < Coin fontSize = "small" /> }
198176 < Text size = "body-small" color = "secondary" noMargin >
199- { shouldShowCredits ? (
200- creditsText
201- ) : (
202- < Trans > { aiCreditsAvailable } AI credits available</ Trans >
203- ) }
177+ { shouldShowCredits ? creditsText : currentQuotaText }
204178 < span
205179 style = { {
206180 verticalAlign : 'middle' ,
0 commit comments