Clean up creatorProfileStore.js

This commit is contained in:
2025-02-07 23:20:23 -05:00
parent 1c1c3109bf
commit f4794fb817

View File

@@ -41,30 +41,15 @@ export const useCreatorProfileStore = defineStore(
async function fetchCurrentCreatorProfile() {
try {
const creatorResponse = await client.get(`/api/creators/profile`);
console.log('creatorProfile');
console.dir(creatorResponse.data)
value.value = creatorResponse.data;
console.dir(value.value);
// TODO: no cache-busting ???
} catch (error) {
console.log(`!!!`)
value.value = undefined;
}
}
async function ConfigureStripeAccount() {
try {
await client.post(`/api/membership/stripe-account`);
return true;
} catch (error) {
return false;
}
}
return {
creator: value,
hasCreator,
fetchCurrentCreatorProfile,
ConfigureStripeAccount,
fetchCurrentCreatorProfile
};
});