From a278085849a239c1208903c065de25f88116dffd Mon Sep 17 00:00:00 2001 From: dearninini <49340827+dearninini@users.noreply.github.com> Date: Fri, 13 Mar 2020 13:01:04 +0800 Subject: [PATCH] Fix typo --- favorite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/favorite.js b/favorite.js index aebbd40..3f91a07 100644 --- a/favorite.js +++ b/favorite.js @@ -65,7 +65,7 @@ const index = data.findIndex(item => item.id === Number(id)) if (index === -1) return - // removie movie and update localStorage + // remove movie and update localStorage data.splice(index, 1) localStorage.setItem('favoriteMovies', JSON.stringify(data))