diff --git a/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx b/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx index eebf1775..3c85cd74 100644 --- a/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx +++ b/mpwo_client/src/components/Activities/ActivityDisplay/ActivityCardHeader.jsx @@ -13,10 +13,10 @@ export default function ActivityCardHeader(props) {
- {activity.previous_activity ? ( + {activity.next_activity ? (
- {activity.next_activity ? ( + {activity.previous_activity ? ( { } const request = new Request(params.url, requestParams) return fetch(request) - .then(response => response.json()) + .then(response => params.method === 'DELETE' + ? response + : response.json()) .catch(error => error) }