Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Jul 22, 2024
1 parent 9b50f70 commit 3fdd66d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CreateOrganizationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function CreateOrganizationDialog({
},
onSuccess: (response) => {
if (response.status === "success" && response.data) {
router.push(`/${response.data}`);
router.push(`/org/${response.data}`);
}
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/data/user/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const createOrganization = async (
}

revalidatePath('/org/[organizationId]', 'layout');
return { status: 'success', data: slug };
return { status: 'success', data: organizationId };
} catch (error) {
console.error('Unexpected error in createOrganization:', error);
return { status: 'error', message: 'An unexpected error occurred' };
Expand Down
2 changes: 1 addition & 1 deletion src/utils/zod-schemas/organization.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { z } from "zod";
import { z } from 'zod';

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

0 comments on commit 3fdd66d

Please sign in to comment.