Updated the message of the failed delete payment

This commit is contained in:
Tiago Ribeiro
2024-01-14 23:35:48 +00:00
parent 3f0821eb33
commit f5bdedee2f

View File

@@ -371,7 +371,7 @@ export default function PaymentRecord() {
} }
if (reason.response.status === 403) { if (reason.response.status === 403) {
toast.error("You do not have permission to delete this exam!"); toast.error("You do not have permission to delete an approved payment record!");
return; return;
} }
@@ -785,7 +785,7 @@ export default function PaymentRecord() {
<div className="w-full flex flex-end justify-between p-2"> <div className="w-full flex flex-end justify-between p-2">
<h1 className="text-2xl font-semibold">Payment Record</h1> <h1 className="text-2xl font-semibold">Payment Record</h1>
<div className="flex justify-end gap-2"> <div className="flex justify-end gap-2">
{(user.type === "developer" || user.type === "admin" || user.type === 'agent' || user.type === 'corporate') && ( {(user.type === "developer" || user.type === "admin" || user.type === "agent" || user.type === "corporate") && (
<Button className="max-w-[200px]" variant="outline"> <Button className="max-w-[200px]" variant="outline">
<CSVLink data={csvRows} headers={csvColumns} filename="payment-records.csv"> <CSVLink data={csvRows} headers={csvColumns} filename="payment-records.csv">
Download CSV Download CSV