Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
What is this?
Less
More

Memberships

Developer Pro

Public β€’ 144 β€’ Free

68 contributions to Developer Pro
investment (dollar cost average) calculator
https://github.com/RyanHazlewood0/crypto-app/pull/49 was able to simplify the code due to your help in the call @Cristian Florea I definitely was over complicating it before 😬. I didn't add the value averaging option because it's not a common investment strategy for crypto anyway and really it's way more complex and I just don't feel like it l0l. time would probably be better spent focusing on other stuff now.
6
1
New comment Oct 24
Dollar cost average / investment calculator
https://github.com/RyanHazlewood0/crypto-app/pull/49 https://www.loom.com/share/a03c20956dbe41a999e5a8538aaf267b been struggling pretty bad with this component, really knocked some confidence out of me πŸ˜…πŸ˜¬ When I enter the dates and other inputs and click calculate, it does work (shows the correct amount spent and total investment value). But if I then change the finish date and click calculate again, it shows a very low number (or sometimes 0) for the total value. So it works the first time but not after that. I think the problem lies in this piece of code which is inside the getTotalVal function: const purchaseDateObjects = priceData.filter((priceObj) => { return dates.some( (date) => new Date(date).toISOString().split("T")[0] === priceObj.date.toISOString().split("T")[0] ); }); after changing the finish date, purchaseDateObjects ends up having only a small number of dates in it, missing a lot of them. Or sometimes its just empty, resulting in totalCoinHolding = either an incorrect / low figure or 0. If I just change the start date there are no problems, just happens with the finish date. Appreciate any input thanks.
2
1
New comment Oct 15
Dollar cost average / investment calculator
pr
https://github.com/RyanHazlewood0/crypto-app/pull/46 Added the ability to select 2 coins in the carousel and show the data on the charts. Before this I also made the other changes you recommended from when you reviewed the app, I didn't post those because they weren't very involved.
2
3
New comment Oct 4
1 like β€’ Oct 4
@Cristian Florea made those parts into seperate components, used slice instead of pop & shift, and used the some() method instead of the nested ternary on the selected prop, please let me know if that's all good, cheers.
crypto app draft
https://crypto-app-one-beryl.vercel.app/ https://github.com/RyanHazlewood0/crypto-app/tree/main/src/app This is what my crypto app looks like so far, I'd appreciate any feedback regarding potential issues e.g. if you run into any errors or see anything that should be improved before I continue adding more features. (btw light mode not added yet so that button does nothing atm). I think I have some issues with performance, occasionally I get bad loading times, and sometimes the portfolio doesn't load properly when there are already entrys in the local storage (CORS error), this could be to do with how i'm fetching certain values for the price change % in the portfolio coin entrys. I'd be interested to know if anyone experiences issues with that part of the app πŸ‘.
5
3
New comment Sep 23
1 like β€’ Sep 22
@Mioara Cenusa Thanks very much Mioara πŸ™‚. I don't have many responsibilities at the moment so I've been able to spend a lot of time, otherwise it would be taking a lot longer lol. Glad to hear you didn't see anything majorly wrong right away, that's a good sign lol. Thanks for taking a look πŸ‘.
pr infinite scroll
https://github.com/RyanHazlewood0/crypto-app/pull/36 I tried wrapping the infinite scroll component around my mapped data and it worked but it caused a "hydration error" so I just put the infinite scroll at the bottom of the render and left it empty and it actually still works as intended πŸ€·β€β™‚οΈ I had to add the "children" property so I just put some curly braces with an empty string inside it.
4
2
New comment Sep 19
1 like β€’ Sep 19
@Cristian Florea oops 😬 must have accidentally left that there from when I was trying something else. removed that line and made it a const, thanks.
1-10 of 68
Ryan Hazlewood
5
214points to level up
@ryan-hazlewood-2831
Aspiring developer

Active 21h ago
Joined Oct 29, 2023
New Zealand
powered by