diff --git a/src/components/pricing/GPUDataInterface.js b/src/components/pricing/GPUDataInterface.js
index 11d5106..47fee8a 100644
--- a/src/components/pricing/GPUDataInterface.js
+++ b/src/components/pricing/GPUDataInterface.js
@@ -19,14 +19,14 @@ export const GPUDataInterface = () => {
[]
)
-
- const selectOEM = (event) => {
- if (event.target.value === "1") {
- return (fetchgpucarddata(gpucarddata.filter((gpudataobj) => gpudataobj.oem === "AMD")))
- } else if (event.target.value === "2") {
- return (fetchgpucarddata(gpucarddata.filter((gpudataobj) => gpudataobj.oem === "NVIDIA")))
- }
- }
+{/* unfinished feature, will implement in production version*/}
+ // const selectOEM = (event) => {
+ // if (event.target.value === "1") {
+ // return (fetchgpucarddata(gpucarddata.filter((gpudataobj) => gpudataobj.oem === "AMD")))
+ // } else if (event.target.value === "2") {
+ // return (fetchgpucarddata(gpucarddata.filter((gpudataobj) => gpudataobj.oem === "NVIDIA")))
+ // }
+ // }
const saveTrackedCards = (gpudataobj) => {
@@ -51,7 +51,8 @@ export const GPUDataInterface = () => {
<>
Graphics Card Prices
<>
-
+ {/* unfinished feature, will implement in production version*/}
+ {/*
-
+
*/}
>
diff --git a/src/components/profile/Profile.js b/src/components/profile/Profile.js
index accffb9..ae9ad43 100644
--- a/src/components/profile/Profile.js
+++ b/src/components/profile/Profile.js
@@ -2,8 +2,9 @@ import react from "react";
import { useState, useEffect } from "react";
export const Profile = () => {
- const [currentUser, changecurrentUser] = useState(localStorage.getItem("graphicsbaytracker_customer"))
- const [currentUsertrackedcards, setcurrentUsertrackedcards] = useState(localStorage.getItem("graphicsbaytracker_customer"))
+ const [Users, fetchUsers] = useState([])
+ const [currentuser, setcurrentuser] = useState(localStorage.getItem("graphicsbaytracker_customer"))
+ const [currentUsertrackedcards, setcurrentUsertrackedcards] = useState([]))
useEffect(
() => {
@@ -11,9 +12,16 @@ export const Profile = () => {
.then(res => res.json())
.then(setcurrentUsertrackedcards)
},[])
-
+ useEffect(
+ () => {
+ fetch("http://localhost:8088/users")
+ .then(res => res.json())
+ .then(fetchUsers)
+ },[])
return(
-
- My Tracked Cards
+ <>
+ {/* why is this returning duplicate elements?*/}
+ returning something. This is a test
+ >
)
}
\ No newline at end of file