Skip to content

Commit

Permalink
Merge pull request #387 from COS301-SE-2024/hotfix/create_org_fix
Browse files Browse the repository at this point in the history
Fixed create org bug
  • Loading branch information
ShamaKamina authored Oct 14, 2024
2 parents bed3175 + 117e35e commit 2e6b9de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion frontend/app/(home)/organization/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ export default function OrganizationPage() {
} catch (err) {
setError('Failed to create organization');
}
throw new Error('Failed to create organization');
};

const myOrganizations = organizations.filter(org => org.isMember);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Image from 'next/image';
interface CreateOrganizationFormProps {
isOpen: boolean;
onClose: () => void;
onCreate: (newOrg: FormData) => Promise<Organization>;
onCreate: (newOrg: FormData) => Promise<Organization | undefined>;
}

const CreateOrganizationForm: React.FC<CreateOrganizationFormProps> = ({ isOpen, onClose, onCreate }) => {
Expand Down

0 comments on commit 2e6b9de

Please sign in to comment.