Skip to content

Commit

Permalink
add custom quantity if there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk committed Feb 1, 2018
1 parent d378a8a commit 8cd1992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/recipe/actions/RecipeItemActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const bulkAdd = (items, list) => {
return (dispatch) => {
const format = (i) => {
let quantity = i.customQuantity ? i.customQuantity : i.quantity;
quantity = i.quantity ? i.quantity + " " : '';
quantity = quantity ? quantity + " " : '';
let measurement = i.measurement ? i.measurement + " " : '';
return quantity + measurement + i.title;
};
Expand Down

0 comments on commit 8cd1992

Please sign in to comment.