Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CryptoDetails.jsx Page Not Loading #87

Open
kmorris2 opened this issue Aug 27, 2022 · 10 comments
Open

CryptoDetails.jsx Page Not Loading #87

kmorris2 opened this issue Aug 27, 2022 · 10 comments

Comments

@kmorris2
Copy link

Navigating the web app is fine until I press on a crypto card to access the CryptoDetails page. A white screen is displayed. I think it has something to do with the red brackets showing up in the code for both CryptoDetails and stats. I can't figure out the issue. Would really appreciate some help.

Screenshot 2022-08-27 150421

Screenshot 2022-08-27 150744

@DecodingGreatness
Copy link

DecodingGreatness commented Aug 31, 2022

wonder if there is anything wrong with the route path. I tried to console.log(cryptoDetails). But it returns undefined.

Screenshot 2022-09-01 at 12 24 21 AM

Screenshot 2022-09-01 at 12 24 42 AM

@kmorris2
Copy link
Author

My CryptoApi.js file looks similar to yours. I believe the problem lies in the const stats portion of the code in CryptoDetails.jsx.

Screenshot 2022-08-31 120852

The $ $ in the first line of stats is making the end bracket brown, which in turn messes up the subsequent lines of code.

@Lucas-Zhang66
Copy link

If the page is blank, then there might be some error occurred, you need to check console.

@kmorris2
Copy link
Author

Thanks for the help! Got it to work. The next problem is coinHistory?.data in LineChart.jsx isn't displaying the percent change of the crypto coin. This is located to the left of the "Current coin Price" on the top right of the application. How can I fix this?

image

image

@Lucas-Zhang66
Copy link

Lucas-Zhang66 commented Sep 12, 2022 via email

@kmorris2
Copy link
Author

Thank you for your response. I have tested the endpoint for getting coin price history. It still works and I am able to see all the historical pricing for various crypto coins in rapid api. Headers and everything else are the same. Not sure why coinHistory isn't working.

@Lucas-Zhang66
Copy link

Lucas-Zhang66 commented Sep 16, 2022 via email

@kmorris2
Copy link
Author

The entire page isn't blank. I realized I didn't have chart-js downloaded. I also have the code you provided above in the file. I have checked the console for coinHistory and it is undefined. Again, the endpoint is working just fine when I tested it. I tried creating a new API key but that didn't seem to do the trick either. Below is what the CryptoDetails page currently looks like.

image

@Georgeikani
Copy link

Navigating the web app is fine until I press on a crypto card to access the CryptoDetails page. A white screen is displayed. I think it has something to do with the red brackets showing up in the code for both CryptoDetails and stats. I can't figure out the issue. Would really appreciate some help.

Screenshot 2022-08-27 150421 Screenshot 2022-08-27 150744

I'm having the same error undefined. Please how did you solve it? Have been stock here for days.

@Georgeikani
Copy link

How did you reslove it sir?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants