fix: soo many lint errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
parseIngredient,
|
||||
unitsOfMeasure as _unitsOfMeasure,
|
||||
} from "npm:parse-ingredient";
|
||||
} from "parse-ingredient";
|
||||
import { Ingredient, IngredientGroup } from "@lib/recipeSchema.ts";
|
||||
import { removeMarkdownFormatting } from "@lib/string.ts";
|
||||
|
||||
@@ -77,7 +77,7 @@ export function parseIngredients(
|
||||
};
|
||||
|
||||
const unit = ingredient.unit.toLowerCase() as keyof typeof unitsOfMeasure;
|
||||
if (unit in unitsOfMeasure && unit !== "cup") {
|
||||
if (unit in unitsOfMeasure) {
|
||||
ingredient.unit = unitsOfMeasure[unit].short;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user