diff --git a/src/Details.js b/src/Details.js index f083b1dc..357f02fc 100644 --- a/src/Details.js +++ b/src/Details.js @@ -10,7 +10,7 @@ class Details extends React.Component { state = { loading: true, showModal: false }; componentDidMount() { pet - .animal(this.props.id) + .animal(parseInt(this.props.id)) .then(({ animal }) => { this.setState({ url: animal.url, @@ -82,4 +82,4 @@ export default function DetailsErrorBoundary(props) {
); -} \ No newline at end of file +}