From 22bb37c58f707de642de85dfcbdc1057b51f58fc Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Tue, 9 Feb 2021 11:48:46 +0530 Subject: [PATCH] corrected casing --- src/services/collectionService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/collectionService.ts b/src/services/collectionService.ts index 36073a58d..6b608605d 100644 --- a/src/services/collectionService.ts +++ b/src/services/collectionService.ts @@ -271,7 +271,7 @@ export const addToFavorites = async (file: file) => { ); await localForage.setItem(FAV_COLLECTION, favCollection); } - await addtoCollection(favCollection, [file]); + await addToCollection(favCollection, [file]); }; export const removeFromFavorites = async (file: file) => { @@ -281,7 +281,7 @@ export const removeFromFavorites = async (file: file) => { await removeFromCollection(favCollection, [file]); }; -const addtoCollection = async (collection: collection, files: file[]) => { +const addToCollection = async (collection: collection, files: file[]) => { try { const params = new Object(); const worker = await new CryptoWorker();