From dbd547be07c762918f19e1cfbf675549c4a00be8 Mon Sep 17 00:00:00 2001 From: Konstantin Komelin Date: Sun, 17 Nov 2019 11:33:47 +0100 Subject: [PATCH] Fixed fetchPopularRepos error handler --- app/components/Popular.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Popular.js b/app/components/Popular.js index 76ca21f..7eeed2c 100644 --- a/app/components/Popular.js +++ b/app/components/Popular.js @@ -104,7 +104,7 @@ export default class Popular extends React.Component { } })) }) - .catch(() => { + .catch((error) => { console.warn('Error fetching repos: ', error) this.setState({ @@ -136,4 +136,4 @@ export default class Popular extends React.Component { ) } -} \ No newline at end of file +}