-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Comments
If the page is blank, then there might be some error occurred, you need to check console. |
Well, for this issue, you need go to rapid api to test the endpoint.. since
it’s been a while, the endpoint has made some changes.. you need to learn
how to debug
…On Mon, Sep 12, 2022 at 12:17 kmorris2 ***@***.***> wrote:
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]
<https://user-images.githubusercontent.com/51349606/189704227-f1a13b11-59f5-4dc5-9557-c0de7f9d3715.png>
[image: image]
<https://user-images.githubusercontent.com/51349606/189704340-8e4786ee-fa0d-4adf-8919-f957d59fa409.png>
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQDOKCRYHESSAF637B5KQSLV55JSHANCNFSM57Z2ZQJA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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. |
again... you need to check out the console for the error if the whole page
is blank. I think the issue is because of the Chart.js, so you need to add
the following code:
this should fix the issue
import {
Chart as ChartJS,
CategoryScale,
LinearScale,
PointElement,
LineElement,
Title,
Tooltip,
Legend,
} from "chart.js";
ChartJS.register(
CategoryScale,
LinearScale,
PointElement,
LineElement,
Title,
Tooltip,
Legend
);
…On Thu, 15 Sept 2022 at 17:44, kmorris2 ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQDOKCUWXEKCRUUDGDKSGPLV6OKFFANCNFSM57Z2ZQJA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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. |
How did you reslove it sir? |
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.
The text was updated successfully, but these errors were encountered: