Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilshakohi committed Nov 26, 2022
1 parent ba996ef commit c4c51cc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,9 @@ const Home = () => {
setAlert({ alertName: 'Content was edited successfully!', alertSeverity: 'info' });
const updateItem = doc(getFirestore(), "contents", id);
await updateDoc(updateItem, {
<<<<<<< HEAD
contentTitle: editContentArray.contentTitle,
contentDetails: editContentArray.contentDetails
=======
contentTitle: editContentTitleRef.current.value,
contentDate: editContentDateRef.current.value,
contentDetails: editContentDetailsRef.current.value
>>>>>>> 235d3b9 (fixes and improvements)
});
setLoadingBackdrop(false);
setTimeout(() => { setAlert({ alertName: '', alertSeverity: '' }) }, 5000);
Expand Down Expand Up @@ -376,4 +371,4 @@ const Home = () => {
);
}

export default Home;
export default Home;

0 comments on commit c4c51cc

Please sign in to comment.