alexcdev1 8 달 전
부모
커밋
1f42a63998
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/app/ui/MatchPrediction.jsx

+ 1 - 1
src/app/ui/MatchPrediction.jsx

@@ -83,7 +83,7 @@ const MatchPrediction = ({ selectedDayMatches, currentUser }) => {
     const fetchPredictions = async () => {
       try {
         const response = await fetch(
-          `/api/prediction?userId=${currentUser?.id || ""}`
+          `/api/prediction?username=${currentUser?.username || ""}`
         );
         if (!response.ok) {
           throw new Error("Failed to fetch predictions");