Fix:Fixed Fetch

This commit is contained in:
2025-02-23 07:57:48 +05:30
parent 51eb7d8f47
commit 699bcb9d2c
@@ -7,11 +7,8 @@ const Transactions = ({ farmId }) => {
const [loading, setLoading] = useState(true);
useEffect(() => {
fetch(`http://localhost:8000/api/v1/finance`, {
fetch(`http://localhost:8000/api/v1/finance/${farmId}`, {
credentials: "include",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ farm: farmId }),
})
.then((response) => response.json())
.then((data) => {