Skip to content

Commit

Permalink
Fixed unused variable/function
Browse files Browse the repository at this point in the history
  • Loading branch information
samilabud committed Mar 5, 2024
1 parent 26dbddc commit 739e8cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/src/redux/shop/shop.actions.js
Original file line number Diff line number Diff line change
@@ -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 = () => ({
Expand All @@ -26,7 +23,6 @@ export const fetchCollectionsStartAsync = () => {
collectionRef
.get()
.then((snapshot) => {
// const collectionsMap = convertCollectionsSnapshotToMap(snapshot);
const collectionsMap = collectionRef;
dispatch(fetchCollectionsSuccess(collectionsMap));
})
Expand Down

0 comments on commit 739e8cf

Please sign in to comment.