diff --git a/src/components/modals/main/settings/sections/Overview.jsx b/src/components/modals/main/settings/sections/Overview.jsx index 3ac69b83..1c4d1267 100644 --- a/src/components/modals/main/settings/sections/Overview.jsx +++ b/src/components/modals/main/settings/sections/Overview.jsx @@ -106,14 +106,14 @@ export default class OrderSettings extends PureComponent { async getNews() { const data = await (await fetch(variables.constants.API_URL + '/news')).json(); - data.news.date = new window.Date(data.news.date).toLocaleDateString(variables.languagecode.replace('_', '-'), { + data.date = new window.Date(data.date).toLocaleDateString(variables.languagecode.replace('_', '-'), { year: 'numeric', month: 'long', day: 'numeric', }); this.setState({ - news: data.news, + news: data, newsDone: true, }); }