Clean up creatorProfileStore.js
This commit is contained in:
@@ -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
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user