small changes
This commit is contained in:
@@ -35,6 +35,8 @@ const useCollectionStore = create<CollectionStore>()((set) => ({
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
console.log(data);
|
||||
|
||||
if (response.ok)
|
||||
set((state) => ({
|
||||
collections: [...state.collections, data.response],
|
||||
|
||||
Reference in New Issue
Block a user