From b96c4845ed066cde71923d2370fdb0f8828fbd01 Mon Sep 17 00:00:00 2001 From: Chandrabhatta Sriram Date: Tue, 25 Feb 2020 12:39:50 +0530 Subject: [PATCH] 174 Forkify: Recipe Model Update - 7.7.10: Updated Recipe Data Model i.e., ./src/js/models/Recipe.js --- .../forkify_project/src/js/models/Recipe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);