chore: tweak plan header

This commit is contained in:
Steven
2024-08-12 23:31:47 +08:00
parent 7c31fd444c
commit 80304070e7
3 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,8 @@ export const stringifyPlanType = (planType: PlanType) => {
return "Free";
} else if (planType === PlanType.PRO) {
return "Pro";
} else if (planType === PlanType.ENTERPRISE) {
return "Enterprise";
} else {
return "Unknown";
}

View File

@ -26,7 +26,6 @@ const useWorkspaceStore = create<WorkspaceState>()((set, get) => ({
fetchWorkspaceProfile: async () => {
const workspaceProfile = (await workspaceServiceClient.getWorkspaceProfile({})).profile as WorkspaceProfile;
set({ ...get(), profile: workspaceProfile });
console.log("workspaceProfile", workspaceProfile);
return workspaceProfile;
},
fetchWorkspaceSetting: async () => {