Skip to content

Commit

Permalink
fix: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Srish-ty committed Apr 15, 2024
1 parent 67ca5d9 commit 82dcf6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/payment/Final.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 82dcf6e

Please sign in to comment.