Skip to content

Commit

Permalink
Update UpgradeSSEToV2.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves committed Jan 27, 2023
1 parent 90bcec6 commit b1119a5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useEffects, useAppState } from 'app/overmind';
import { MessageStripe } from '@codesandbox/components';
import { sandboxUrl } from '@codesandbox/common/lib/utils/url-generator';
import { hasPermission } from '@codesandbox/common/lib/utils/permission';
import track from '@codesandbox/common/lib/utils/analytics';

export const UpgradeSSEToV2Stripe = () => {
const state = useAppState();
Expand All @@ -26,6 +27,8 @@ export const UpgradeSSEToV2Stripe = () => {
setIsLoading(true);
const sandboxId = state.editor.currentSandbox.id;

track('Editor - Convert to Cloud Sandbox', { owned: canConvert });

if (canConvert) {
const alias = state.editor.currentSandbox.alias;

Expand Down

0 comments on commit b1119a5

Please sign in to comment.