Skip to content

Commit b96c484

Browse files
committed
174 Forkify: Recipe Model Update
- 7.7.10: Updated Recipe Data Model i.e., ./src/js/models/Recipe.js
1 parent ab57240 commit b96c484

File tree

1 file changed

+1
-1
lines changed
  • Modern-JS-ES6-NPM-Babel-Webpack/forkify_project/src/js/models

1 file changed

+1
-1
lines changed

Modern-JS-ES6-NPM-Babel-Webpack/forkify_project/src/js/models/Recipe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class Recipe {
6666
// units, which are tsp, tbsp, etc, respectively. And another map for units that
6767
// can occur in singular form i.e., teaspoon, tablespoon, etc. We will convert all of
6868
// the singular units also into an their respective short-forms as show n above.
69-
const abbrUnits = ['tbsp', 'tsp', 'cup', 'oz', 'pound'];
69+
const abbrUnits = ['tbsp', 'tsp', 'cup', 'oz', 'pound', 'kg', 'g'];
7070

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

0 commit comments

Comments
 (0)