Skip to content

Commit

Permalink
Fix equal operator
Browse files Browse the repository at this point in the history
  • Loading branch information
YikSanChan committed Apr 4, 2020
1 parent 0c349db commit 2c80137
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion alipay-unstated/src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default () => {
const checkedItems = e.detail.value;
const items = todo.items.map(item => ({
...item,
completed: !!checkedItems.find(id => item.id == id),
completed: !!checkedItems.find(id => item.id === id),
}));

todo.setItems(items);
Expand Down
2 changes: 1 addition & 1 deletion alipay/src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default () => {
const checkedItems = e.detail.value;
const items = todo.items.map(item => ({
...item,
completed: !!checkedItems.find(id => item.id == id)
completed: !!checkedItems.find(id => item.id === id)
}));

todo.setItems(items);
Expand Down
2 changes: 1 addition & 1 deletion toutiao/src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default () => {
const checkedItems = e.detail.value;
const items = todo.items.map(item => ({
...item,
completed: !!checkedItems.find(id => item.id == id),
completed: !!checkedItems.find(id => item.id === id),
}));

todo.setItems(items);
Expand Down
2 changes: 1 addition & 1 deletion wechat/src/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default () => {
const checkedItems = e.detail.value;
const items = todo.items.map(item => ({
...item,
completed: !!checkedItems.find(id => item.id == id),
completed: !!checkedItems.find(id => item.id === id),
}));

todo.setItems(items);
Expand Down
2 changes: 1 addition & 1 deletion wechat/src/pages/new/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default () => {
{
id: Date.now(),
text,
compeleted: false,
completed: false,
},
]);

Expand Down

0 comments on commit 2c80137

Please sign in to comment.