Skip to content

Commit 3fdd66d

Browse files
minor fix
1 parent 9b50f70 commit 3fdd66d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/CreateOrganizationDialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function CreateOrganizationDialog({
6363
},
6464
onSuccess: (response) => {
6565
if (response.status === "success" && response.data) {
66-
router.push(`/${response.data}`);
66+
router.push(`/org/${response.data}`);
6767
}
6868
},
6969
},

src/data/user/organizations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const createOrganization = async (
141141
}
142142

143143
revalidatePath('/org/[organizationId]', 'layout');
144-
return { status: 'success', data: slug };
144+
return { status: 'success', data: organizationId };
145145
} catch (error) {
146146
console.error('Unexpected error in createOrganization:', error);
147147
return { status: 'error', message: 'An unexpected error occurred' };

src/utils/zod-schemas/organization.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod";
1+
import { z } from 'zod';
22

33
export const createOrganizationSchema = z.object({
44
organizationTitle: z.string().min(1),

0 commit comments

Comments
 (0)