Skip to content

Commit d0d9b4d

Browse files
committed
Minor bugs in comparison operations
1 parent d90bec0 commit d0d9b4d

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

.idea/workspace.xml

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/RecipePageContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function RecipePageContainer({ recipeList = [{ id: "" }], hasData
1212
let recipeDeets = {};
1313

1414
for (let i = 0; i < recipeList.length; i++) {
15-
if (recipeList[i].id === { recipeId }) {
15+
if (recipeList[i].id === recipeId) {
1616
recipeDeets = recipeList[i];
1717
break;
1818
}

src/helpers/convert_text_functions.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function format_text_replacement_list_items(inputArray) {
2929
// newlines with ¶
3030
// tabs with ⇥
3131

32-
if (inputArray === []) {
32+
if (!inputArray.length) {
3333
return []
3434
}
3535

0 commit comments

Comments
 (0)