浏览代码

corrected casing

Abhinav-grd 4 年之前
父节点
当前提交
22bb37c58f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/services/collectionService.ts

+ 2 - 2
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();