Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
5
Comments
2
Denzel Nii Armah Ashitey
@DennyDoesFrontend

All comments

  • P
    João Víctor de Araujo Lima•350
    @xuaun
    Submitted 5 months ago
    What are you most proud of, and what would you do differently next time?

    This is my first project using API, I'm quite happy and proud to have managed to do it!

    What specific areas of your project would you like help with?

    I don't know if this solution I gave for my API is the best using async function() and await. If you have any suggestions on how to improve my code, I appreciate it!

    Responsive Advice generator app

    1
    Denzel Nii Armah Ashitey•120
    @DennyDoesFrontend
    Posted 5 months ago

    Your API doesnt get called when you click the dice. This is because the API (https://api.adviceslip.com/advice) sometimes caches responses, meaning clicking the button might fetch the same advice repeatedly. You can easily fix this by using

    const url = `https://api.adviceslip.com/advice?timestamp=${new Date().getTime()}`;
    

    using a timestamp will force the API URL to run again with a fresh response. I hope this helps :)

    Marked as helpful
  • PTUsumit•190
    @PTUsumit
    Submitted 5 months ago

    IP Address Tracker

    #next#shadcn
    1
    Denzel Nii Armah Ashitey•120
    @DennyDoesFrontend
    Posted 5 months ago

    For some reason, your application doesnt work and the UI doesnt match the design at all. While your design doesnt have to be picture perfect, you could at least try to make it look similar.

    Please work on the API call as well as it seems very buggy. I dont have experience with Next.js but your console says 'Error fetching IP data: Error: Failed to fetch IP details'

Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub