Skip to content

Commit

Permalink
Merge pull request #1848 from cardstack/fix-flashing-at-loading-screen
Browse files Browse the repository at this point in the history
Fix flashing on loading screen
  • Loading branch information
richardhjtan authored Dec 2, 2024
2 parents 6337348 + cc58a22 commit 3400152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions packages/host/app/components/operator-mode/container.gts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ export default class OperatorModeContainer extends Component<Signature> {
if (isTesting()) {
return true;
}
if (this.isUserInfoLoading) {
return false;
}
return (
!!this.billingService.subscriptionData?.stripeCustomerId &&
!!this.billingService.subscriptionData?.plan
Expand Down
3 changes: 2 additions & 1 deletion packages/host/app/services/billing-service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Owner from '@ember/owner';
import Service from '@ember/service';
import { service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { tracked, cached } from '@glimmer/tracking';

import { dropTask } from 'ember-concurrency';

Expand Down Expand Up @@ -55,6 +55,7 @@ export default class BillingService extends Service {
return `${stripePaymentLink}?client_reference_id=${clientReferenceId}`;
}

@cached
get subscriptionData() {
return this._subscriptionData;
}
Expand Down

0 comments on commit 3400152

Please sign in to comment.