Skip to content

Commit

Permalink
βœ… Fixed: Manage Q&A giving error (#1092)
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgaur99 authored Jul 30, 2024
1 parent c7faa20 commit 1b26e50
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/pages/Admin/Components/Faq/Q&A/QandA.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { hideToast } from "../../../../../service/toastService";

export function QandA({ setTab, setQId, tab }) {
const [cards, setCards] = useState([]);
const [isLoaded,setIsLoaded] = useState(false)
const [isLoaded, setIsLoaded] = useState(false);
const [toast, setToast] = useState({
toastStatus: false,
toastType: "",
Expand Down Expand Up @@ -47,8 +47,10 @@ export function QandA({ setTab, setQId, tab }) {
<h5>Status</h5> {`${d.isApproved ? "Approved" : "Not Approved"}`}
</div>
<div style={{ display: "flex" }}>
{d.tags.map((tag) => (
<p className={style["tags"]}>{tag}</p>
{d.tags.map((tag, idx) => (
<p key={idx} className={style["tags"]}>
{tag.value || tag}
</p>
))}
</div>
<button
Expand Down

0 comments on commit 1b26e50

Please sign in to comment.