File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
apps/dashboard/src/components/settings/Account/Billing Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,18 @@ export const Billing: React.FC<BillingProps> = ({ account }) => {
202
202
// eslint-disable-next-line no-restricted-syntax
203
203
useEffect ( ( ) => {
204
204
if ( account ) {
205
- const paymentCompleted = validPayment ;
206
-
207
205
setStepsCompleted ( {
208
206
account : ! ! account . email ,
209
- payment : paymentCompleted ,
207
+ payment : validPayment ,
210
208
} ) ;
209
+ }
210
+ } , [ validPayment , account ] ) ;
211
+
212
+ // FIXME: this entire flow needs to be re-worked
213
+ // eslint-disable-next-line no-restricted-syntax
214
+ useEffect ( ( ) => {
215
+ if ( account ) {
216
+ const paymentCompleted = validPayment ;
211
217
212
218
if ( paymentCompleted && paymentMethodSaving ) {
213
219
// user chose a growth plan before adding a payment method,
You can’t perform that action at this time.
0 commit comments