There was an error while loading. Please reload this page.
1 parent 6da3293 commit 7f6506fCopy full SHA for 7f6506f
1 file changed
db/store.js
@@ -25,7 +25,7 @@ function createUser({ name, email }) {
25
}
26
27
function updateUser(id, { name, email }) {
28
- const user = users.find((user) => user.id === id);
+ const user = getUserById(id);
29
if (!user) return undefined;
30
31
user.name = name;
0 commit comments