From 82dcf6ed3539e304f203451f64e4ef473a50a7cd Mon Sep 17 00:00:00 2001 From: Srishty M Date: Mon, 15 Apr 2024 19:27:26 +0530 Subject: [PATCH] fix: minor changes --- src/components/payment/Final.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/payment/Final.jsx b/src/components/payment/Final.jsx index d83c9a6..eb51fa0 100644 --- a/src/components/payment/Final.jsx +++ b/src/components/payment/Final.jsx @@ -8,14 +8,13 @@ import { updateDocumentByUid } from '../../firebase/uploadProof'; function Final() { const { userInfo } = useContext(AuthContext); - var currentUser = userInfo[0]; + const currentUser = userInfo[0]; const [file, setFile] = useState(null); const uploadProof = async () => { const proofURL = await uploadReceipt(file); await updateDocumentByUid(currentUser.uid, proofURL); - await updateDocumentByUid(currentUser.uid, proofURL); }; const [isUPI, setisUPI] = useState(true);