diff --git a/Modern-JS-ES6-NPM-Babel-Webpack/forkify_project/src/js/models/Recipe.js b/Modern-JS-ES6-NPM-Babel-Webpack/forkify_project/src/js/models/Recipe.js index 55f7d0d..4a96637 100644 --- a/Modern-JS-ES6-NPM-Babel-Webpack/forkify_project/src/js/models/Recipe.js +++ b/Modern-JS-ES6-NPM-Babel-Webpack/forkify_project/src/js/models/Recipe.js @@ -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]);