This commit is contained in:
Ricardo Espinoza 2024-12-30 16:35:50 -05:00
parent f78ccebe51
commit a3d13c6803
No known key found for this signature in database

View file

@ -54,6 +54,14 @@ const activeNodeHasOpenAiApiCredential = computed(
);
const userCanClaimOpenAiCredits = computed(() => {
console.log(`settingsStore.isAiCreditsEnabled: ${settingsStore.isAiCreditsEnabled}`);
console.log(`activeNodeHasOpenAiApiCredential.value: ${activeNodeHasOpenAiApiCredential.value}`);
console.log(
`postHogStore.isFeatureEnabled: ${postHogStore.isFeatureEnabled(AI_CREDITS_EXPERIMENT.name)}`,
);
console.log(`userHasOpenAiCredentialAlready.value: ${userHasOpenAiCredentialAlready.value}`);
console.log(`userHasClaimedAiCreditsAlready.value: ${userHasClaimedAiCreditsAlready.value}`);
return (
settingsStore.isAiCreditsEnabled &&
activeNodeHasOpenAiApiCredential.value &&