fix: es_419 locale, run prettier, remove unused line

This commit is contained in:
David Ralph
2022-11-26 21:32:50 +00:00
committed by GitHub
parent 8035b35436
commit e161b82ad3
16 changed files with 65 additions and 54 deletions

View File

@@ -106,12 +106,15 @@ export default class OrderSettings extends PureComponent {
async getNews() {
const data = await (await fetch(variables.constants.API_URL + '/news')).json();
data.date = new window.Date(data.date).toLocaleDateString(variables.languagecode.replace('_', '-'), {
year: 'numeric',
month: 'long',
day: 'numeric',
});
data.date = new window.Date(data.date).toLocaleDateString(
variables.languagecode.replace('_', '-'),
{
year: 'numeric',
month: 'long',
day: 'numeric',
},
);
this.setState({
news: data,
newsDone: true,