this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix error with zero posts

+6 -3
+6 -3
src/components/account-info.jsx
··· 102 102 }); 103 103 104 104 // Count days since last post 105 - stats.daysSinceLastPost = Math.ceil( 106 - (Date.now() - new Date(statuses[statuses.length - 1].createdAt)) / 86400000, 107 - ); 105 + if (statuses.length) { 106 + stats.daysSinceLastPost = Math.ceil( 107 + (Date.now() - new Date(statuses[statuses.length - 1].createdAt)) / 108 + 86400000, 109 + ); 110 + } 108 111 109 112 console.log('posting stats', stats); 110 113 return stats;