From 85af2e82b7d6bcf51de3bdc0228755969888698b Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:38:48 +0200 Subject: [PATCH] Fix --- .../core/sponsorship-list/sponsorship-list.src.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js b/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js index 8f1470e9..24e5d1d2 100644 --- a/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js +++ b/plugins/plugins/core/sponsorship-list/sponsorship-list.src.js @@ -6,10 +6,6 @@ import { asyncReplace } from 'lit/directives/async-replace.js' import { pageStyles } from './sponsorship-list-css.src.js' import isElectron from 'is-electron' -registerTranslateConfig({ - loader: (lang) => fetch(`/language/${lang}.json`).then((res) => res.json()), -}) - import '@material/mwc-button' import '@material/mwc-dialog' import '@material/mwc-icon' @@ -19,6 +15,10 @@ import '@polymer/paper-spinner/paper-spinner-lite.js' import '@vaadin/button' import '../components/ButtonIconCopy.js' +registerTranslateConfig({ + loader: lang => fetch(`/language/${lang}.json`).then(res => res.json()) +}) + const parentEpml = new Epml({ type: 'WINDOW', source: window.parent }) async function* countDown(count, callback) { @@ -650,7 +650,7 @@ class SponsorshipList extends LitElement { try { accountDetails = await getAccountDetails() } catch (error) { - this.errorMessage = 'Couldn't fetch account details' + this.errorMessage = 'Could not fetch account details' } let lastRef = await getLastRef()