From 33a6b53b11054586c8cabe66651370e85e73e3f5 Mon Sep 17 00:00:00 2001 From: rayzhou-bit Date: Mon, 20 May 2024 00:43:39 -0700 Subject: [PATCH] various fixes --- src/components/Library/FilterBar.jsx | 2 +- src/components/Library/hooks.js | 11 ++++++++++- src/components/Library/index.jsx | 7 ++++++- src/data/api/database.js | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/Library/FilterBar.jsx b/src/components/Library/FilterBar.jsx index 2c51191..ec4f20f 100644 --- a/src/components/Library/FilterBar.jsx +++ b/src/components/Library/FilterBar.jsx @@ -32,7 +32,7 @@ const FilterBar = ({ onClick={() => setIsColorFiltered(!isColorFiltered)} > Color - diff --git a/src/data/api/database.js b/src/data/api/database.js index 0e5469e..ea80864 100644 --- a/src/data/api/database.js +++ b/src/data/api/database.js @@ -107,7 +107,7 @@ export const firstTimeSetup = () => dispatch => { }; const saveActiveProjectId = (id, callback) => dispatch => { - updateDoc(userDoc(), { activeCampaignId: id }) + setDoc(userDoc(), { activeCampaignId: id }) .then(response => { console.log('[saveActiveProjectId] success'); if (callback) {