Skip to content

Commit e8325b6

Browse files
author
Gene Hynson
authored
fix(sub): avoid deconstructing quartzMe (#4810)
1 parent 119428d commit e8325b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/writeData/subscriptions/components/CreateSubscriptionPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const CreateSubscriptionPage: FC = () => {
9393
)
9494
const showUpgradeButton = useSelector(shouldShowUpgradeButton)
9595
const isCredit250ExperienceActive = useSelector(shouldGetCredit250Experience)
96-
const {accountType} = useSelector(getQuartzMe)
96+
const quartzMe = useSelector(getQuartzMe)
9797
const buckets = useSelector((state: AppState) =>
9898
getAll<Bucket>(state, ResourceType.Buckets).filter(b => b.type === 'user')
9999
)
@@ -102,7 +102,7 @@ const CreateSubscriptionPage: FC = () => {
102102
useEffect(() => {
103103
event(
104104
'visited creation page',
105-
{userAccountType: accountType},
105+
{userAccountType: quartzMe?.accountType ?? 'unknown'},
106106
{feature: 'subscriptions'}
107107
)
108108
}, [])

0 commit comments

Comments
 (0)