We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f8cdc commit 8a402bcCopy full SHA for 8a402bc
src/composables/auth/useFirebaseAuthActions.ts
@@ -22,7 +22,6 @@ export const useFirebaseAuthActions = () => {
22
const authStore = useFirebaseAuthStore()
23
const toastStore = useToastStore()
24
const { wrapWithErrorHandlingAsync, toastErrorHandler } = useErrorHandling()
25
- const { isActiveSubscription } = useSubscription()
26
27
const accessError = ref(false)
28
@@ -84,6 +83,7 @@ export const useFirebaseAuthActions = () => {
84
83
)
85
86
const purchaseCredits = wrapWithErrorHandlingAsync(async (amount: number) => {
+ const { isActiveSubscription } = useSubscription()
87
if (!isActiveSubscription.value) return
88
89
const response = await authStore.initiateCreditPurchase({
0 commit comments