Skip to content

Commit

Permalink
Fixes Invalid prop credential.id of type number supplied to `Cred…
Browse files Browse the repository at this point in the history
…entialEdit`, expected `object` warning in CredentialEdit test
  • Loading branch information
mabashian committed Apr 28, 2021
1 parent 94b9892 commit 04ca1cb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import ContentLoading from '../../../components/ContentLoading';
import CredentialForm from '../shared/CredentialForm';
import useRequest from '../../../util/useRequest';
import { useConfig } from '../../../contexts/Config';
import { Credential } from '../../../types';

function CredentialEdit({ credential }) {
const history = useHistory();
Expand Down Expand Up @@ -198,7 +199,7 @@ function CredentialEdit({ credential }) {
}

CredentialEdit.propTypes = {
credential: PropTypes.objectOf(PropTypes.object).isRequired,
credential: Credential.isRequired,
};

export { CredentialEdit as _CredentialEdit };
Expand Down

0 comments on commit 04ca1cb

Please sign in to comment.