diff --git a/frontend/src/pages/Q&A/Q&A.jsx b/frontend/src/pages/Q&A/Q&A.jsx
index 686f1522..d9d2e1bb 100644
--- a/frontend/src/pages/Q&A/Q&A.jsx
+++ b/frontend/src/pages/Q&A/Q&A.jsx
@@ -123,10 +123,12 @@ function Ques(props) {
};
const [getQuestions, setQuestions] = useState([]);
-
const fetchQuestions = () => {
getAllQuestion(setToast).then((data) => {
setLoading(false);
+ data = data.map((item) => {
+ return { ...item, tags: item.tags[0] };
+ });
setQuestions(data);
});
};
@@ -154,38 +156,48 @@ function Ques(props) {
{item.title}
-{item.description}
- {item.tags.map((i, key) => ( - - #{i} - - ))} -Created At {new Date(item.createdAt).toLocaleString()}
+ {getQuestions?.map((item, key) => { + let tags = [...Object.values(item.tags)]; + return ( +{item.title}
+{item.description}
++ Created At {new Date(item.createdAt).toLocaleString()} +
+