From 739e8cf4ce47d8db8b0689bc22ed0792ee5e8eb4 Mon Sep 17 00:00:00 2001 From: Samil Abud Date: Tue, 5 Mar 2024 10:55:10 -0400 Subject: [PATCH] Fixed unused variable/function --- client/src/redux/shop/shop.actions.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/redux/shop/shop.actions.js b/client/src/redux/shop/shop.actions.js index c6f4f51..68d3552 100644 --- a/client/src/redux/shop/shop.actions.js +++ b/client/src/redux/shop/shop.actions.js @@ -1,8 +1,5 @@ import ShopActionTypes from "./shop.type"; -import { - convertCollectionsSnapshotToMap, - firestore, -} from "../../firebase/firebase.utils"; +import { firestore } from "../../firebase/firebase.utils"; import { collection, getDocs } from "firebase/firestore"; export const fetchCollectionsStart = () => ({ @@ -26,7 +23,6 @@ export const fetchCollectionsStartAsync = () => { collectionRef .get() .then((snapshot) => { - // const collectionsMap = convertCollectionsSnapshotToMap(snapshot); const collectionsMap = collectionRef; dispatch(fetchCollectionsSuccess(collectionsMap)); })