Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lake2 committed Mar 19, 2020
1 parent a062849 commit e7adbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export default function App() {
const request = async () => {
Dispatch.news.startLoading();
try {
const response = await Api.getNewsList();
const response = await Api.getNewsList(news.page);
if (!Api.isError(response)) {
if (response.data.list.length === 0) {
Dispatch.news.reachEndOfList();
Expand Down

0 comments on commit e7adbcd

Please sign in to comment.