import axios from 'axios';

export default itemIdentifier => axios.get(`items`, {
  baseURL: `http://track.bpost.be/btr/api/`,
  responseType: `json`,
  params: { itemIdentifier },
}).then(res => res.data[0]);

import axios from 'axios';

export default itemIdentifier => axios.get(`items`, {
  baseURL: `http://track.bpost.be/btr/api/`,
  responseType: `json`,
  params: { itemIdentifier },
}).then(res => res.data.items[0]);

Fix return of fetch response API response now uses a top level key items followed by the array
:ambulance: Fix return of fetch response
API response now uses a top level key items followed by the array
