Skip to content

Commit

Permalink
fix student payments
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Oct 22, 2024
1 parent 86badad commit 6bad72b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/api/booth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ router.get("/getTransaction", async (req, res) => {
start_timestamp: Date
name: string
}[]>`
SELECT Transaction.transaction_id, Transactions.status, Transactions.amount, Transactions.start_timestamp, Users.name FROM Transactions INNER JOIN Users ON Users.uid = Transactions.sender_uid WHERE transaction_id = ${transId}
SELECT Transactions.transaction_id, Transactions.status, Transactions.amount, Transactions.start_timestamp, Users.name FROM Transactions INNER JOIN Users ON Users.uid = Transactions.sender_uid WHERE transaction_id = ${transId}
`

if (transaction.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/student_main_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function StudentMainPage() {
alert("Invalid amount!");
return;
}
navigate("/student/payment", { state: { amount: amount.current } });
navigate("/student/payment", { state: { amount: amt.toString() } });
}}>
Make Payment
</Button>
Expand Down

0 comments on commit 6bad72b

Please sign in to comment.