Skip to content

Commit

Permalink
Merge pull request #1074 from milotiger/bugs/fix_minor_bug_on_fetchin…
Browse files Browse the repository at this point in the history
…g_reviews

fix dispatch for fetchReviewRequest
  • Loading branch information
Gnito authored May 3, 2019
2 parents 506248b + 7a5e77f commit ee78b08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern:

## Upcoming version 2019-XX-XX

- [fix] ListingPage.duck: fix minor bug on dispatching the fetchReviewsRequest action [#1074](https://github.com/sharetribe/flex-template-web/pull/1074)

## [v2.15.0] 2019-04-24

- [add] Improve printing API errors on web inspector (console.table)
Expand Down
2 changes: 1 addition & 1 deletion src/containers/ListingPage/ListingPage.duck.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const showListing = (listingId, isOwn = false) => (dispatch, getState, sd
};

export const fetchReviews = listingId => (dispatch, getState, sdk) => {
dispatch(fetchReviewsRequest);
dispatch(fetchReviewsRequest());
return sdk.reviews
.query({
listing_id: listingId,
Expand Down

0 comments on commit ee78b08

Please sign in to comment.