Skip to content

Commit f9850ea

Browse files
committed
Refactor FAQ data structure: streamline category and subcategory handling in reducer
Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
1 parent eaf771e commit f9850ea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/sections/General/Faq/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ const Faq = (props) => {
4444
let faqs = faqs_data.reduce((faq, ind) => {
4545
const category = ind.category;
4646
const subcategory = ind.subcategory || "General";
47-
47+
4848
if (!faq[category]) {
4949
faq[category] = {};
5050
}
51-
51+
5252
if (!faq[category][subcategory]) {
5353
faq[category][subcategory] = [];
5454
}
55-
55+
5656
faq[category][subcategory].push(ind);
5757
return faq;
5858
}, {});

0 commit comments

Comments
 (0)