Skip to content

Commit

Permalink
Cleaned routing call in Donation.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
JAVillarino committed Feb 24, 2024
1 parent 7253511 commit d3d9591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/donations/Donation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type DonationInputs = {
function Donation({companyName, dollarsRaised}: DonationInputs) {
// Import the proportions from the route.ts => how to
async function GetData() {
let data = await fetch(`${process.env.NEXT_PUBLIC_SITE_URL}/api/data/`)
let data = await fetch(`/api/data/`)
console.log(data)
let data_json = await data.json()
console.log(data_json)
Expand Down

0 comments on commit d3d9591

Please sign in to comment.