Skip to content

Commit

Permalink
Adjusted names to be able to work on multiple devices
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoruwaTolu committed Apr 9, 2024
1 parent 734b852 commit 3f1ac46
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion prem-data/src/components/home-layer-1/pl-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function BasicTabs() {
const fetchData = async () => {

try{
const response = await fetch(`http://localhost:3001/seasonInformation`);
const response = await fetch(`https://pl-database-1gr2.onrender.com/seasonInformation`);
const data = await response.json();
setData(data);
}
Expand Down
2 changes: 1 addition & 1 deletion prem-data/src/components/recommend-players.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const RecommendPlayers = ({title}) => {
const fetchData = async () => {

try{
const response = await fetch(`http://localhost:3001/explore-players`);
const response = await fetch(`https://pl-database-1gr2.onrender.com/explore-players`);
const data = await response.json();
setRandomPlayers(data);
}
Expand Down
4 changes: 2 additions & 2 deletions prem-data/src/pages/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function Create(){
option2 = normalizeNames[option2]

try{
const response1 = await fetch(`http://localhost:3001/create/${option1}`);
const response2 = await fetch(`http://localhost:3001/create/${option2}`);
const response1 = await fetch(`https://pl-database-1gr2.onrender.com/create/${option1}`);
const response2 = await fetch(`https://pl-database-1gr2.onrender.com/${option2}`);
const data1 = await response1.json();
const data2 = await response2.json();

Expand Down
2 changes: 1 addition & 1 deletion prem-data/src/pages/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Quiz(){
const fetchData = async () => {

try{
const response = await fetch(`http://localhost:3001/connections`);
const response = await fetch(`https://pl-database-1gr2.onrender.com/connections`);
const data = await response.json();
setConnectionsQuestion(data[0]);

Expand Down

0 comments on commit 3f1ac46

Please sign in to comment.