mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
fix: Correct how faq module is exported
This commit is contained in:
@@ -2,7 +2,13 @@ import t from './translation';
|
|||||||
|
|
||||||
const NUMBER_OF_QUESTIONS = 12;
|
const NUMBER_OF_QUESTIONS = 12;
|
||||||
|
|
||||||
export const questions = [];
|
let faq = {
|
||||||
|
questions: [],
|
||||||
|
stillNeedHelp: {
|
||||||
|
ios: t('iosFaqStillNeedHelp'),
|
||||||
|
web: t('webFaqStillNeedHelp'),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
for (let i = 0; i <= NUMBER_OF_QUESTIONS; i++) {
|
for (let i = 0; i <= NUMBER_OF_QUESTIONS; i++) {
|
||||||
let question = {
|
let question = {
|
||||||
@@ -11,10 +17,7 @@ for (let i = 0; i <= NUMBER_OF_QUESTIONS; i++) {
|
|||||||
web: t(`webFaqAnswer${i}`),
|
web: t(`webFaqAnswer${i}`),
|
||||||
};
|
};
|
||||||
|
|
||||||
questions.push(question);
|
faq.questions.push(question);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const stillNeedHelp = {
|
module.exports = faq;
|
||||||
ios: t('iosFaqStillNeedHelp'),
|
|
||||||
web: t('webFaqStillNeedHelp'),
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user