Skip to content

Commit

Permalink
fixing callback
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodsum committed Mar 31, 2020
1 parent 4d554bb commit 919e098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/RecipeDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const ItemDetailsPage: React.FC<RouteComponentProps> = ({ match }) => {
}, [slug]);

const saveReview = React.useCallback(
async (commenterName: string, stars: number, review: string) =>
await reviewsTable.push({
(commenterName: string, stars: number, review: string) =>
reviewsTable.push({
commenter_name: commenterName,
stars: stars,
text: review,
Expand Down

0 comments on commit 919e098

Please sign in to comment.