mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 21:46:22 -04:00
(bug) fix refactoring issues
This commit is contained in:
parent
88661eb5ed
commit
ea1318785c
@ -395,7 +395,7 @@ const opinionsToForm = (opinions, translator) => buildList(function*() {
|
||||
}
|
||||
});
|
||||
|
||||
const buildProfile = (profiles, currentLocale, translator) => {
|
||||
const buildProfile = (profiles, currentLocale, config, translator) => {
|
||||
// card in this locale exists
|
||||
for (const locale in profiles) {
|
||||
if (!profiles.hasOwnProperty(locale)) {
|
||||
@ -444,7 +444,7 @@ const buildProfile = (profiles, currentLocale, translator) => {
|
||||
links: profile.links,
|
||||
flags: profile.flags.filter((f) => !f.startsWith('-')),
|
||||
customFlags: fixArrayObject(profile.customFlags),
|
||||
words: [...defaultWords(this.$config)],
|
||||
words: [...defaultWords(config)],
|
||||
teamName: profile.teamName,
|
||||
footerName: profile.footerName,
|
||||
footerAreas: [],
|
||||
@ -470,7 +470,7 @@ const buildProfile = (profiles, currentLocale, translator) => {
|
||||
links: [],
|
||||
flags: [],
|
||||
customFlags: [],
|
||||
words: [...defaultWords(this.$config)],
|
||||
words: [...defaultWords(config)],
|
||||
teamName: '',
|
||||
footerName: '',
|
||||
footerAreas: [],
|
||||
@ -499,7 +499,7 @@ export default {
|
||||
authorization: `Bearer ${store.state.token}`,
|
||||
} })).profiles;
|
||||
|
||||
const profile = buildProfile(profiles, currentLocale, app.$translator);
|
||||
const profile = buildProfile(profiles, currentLocale, app.$config, app.$translator);
|
||||
|
||||
return {
|
||||
...profile,
|
||||
|
Loading…
x
Reference in New Issue
Block a user