ohansemmanuel / fake-medium

💥 A tiny (super tiny) medium article page + clap animation for demo purposes.
201 stars 86 forks source link

onFailure displaying automatically in console #1

Closed WeiPhil closed 5 years ago

WeiPhil commented 5 years ago

Hi, I just noted that in the function actions/index.js you have specified a onFailure function equal to console.log("Error occured loading articles") , I suppose what you meant there is an arrow function like this ? : () => { console.log("Error occured loading articles"); } So that IF there is an error that lambda function is called. Really nice tutorial, it helped me a lot! Best, Phil

ohansemmanuel commented 5 years ago

Hello @WeiPhil You're right. I'll fix this now.

Apologies for the late reply. Didn't seem to get notified about this issue.