Explorar el Código

Fix type error in JoC

Tati hace 7 años
padre
commit
f4521bce25
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ktchn/src/recipes/scrape/sources/just-one-cookbook.ts

+ 1 - 1
ktchn/src/recipes/scrape/sources/just-one-cookbook.ts

@@ -32,7 +32,7 @@ const getRecipeDetails = ($: CheerioSelector): RecipeDetails => {
   return {
     preparationTime: $(SELECTORS.PREP_TIME).text(),
     cookingTime: $(SELECTORS.COOK_TIME).text(),
-    servings: $(SELECTORS.SERVINGS).text(),
+    servings: Number($(SELECTORS.SERVINGS).text()),
   }
 };