Skip to content

Commit

Permalink
174 Forkify: Recipe Model Update
Browse files Browse the repository at this point in the history
- 7.7.10: Updated Recipe Data Model i.e., ./src/js/models/Recipe.js
  • Loading branch information
Ch-sriram committed Feb 25, 2020
1 parent ab57240 commit b96c484
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class Recipe {
// units, which are tsp, tbsp, etc, respectively. And another map for units that
// can occur in singular form i.e., teaspoon, tablespoon, etc. We will convert all of
// the singular units also into an their respective short-forms as show n above.
const abbrUnits = ['tbsp', 'tsp', 'cup', 'oz', 'pound'];
const abbrUnits = ['tbsp', 'tsp', 'cup', 'oz', 'pound', 'kg', 'g'];

const pluralUnits = new Map();
pluralUnits.set('tablespoons', abbrUnits[0]);
Expand Down

0 comments on commit b96c484

Please sign in to comment.