mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-01 21:28:23 +00:00
fix: update welcome message in ApplicationLayout and simplify payment verification logic in DevicesToPay
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m41s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m41s
This commit is contained in:
@ -101,26 +101,11 @@ export default function DevicesToPay({
|
||||
disabled={verifying}
|
||||
onClick={async () => {
|
||||
setVerifying(true);
|
||||
// const res = await verifyPayment({
|
||||
// userId: user?.id ?? "",
|
||||
// paymentId: payment?.id,
|
||||
// benefName: user?.name ?? "",
|
||||
// accountNo: user?.accNo ?? "",
|
||||
// absAmount: String(payment?.amount),
|
||||
// type: "TRANSFER",
|
||||
// time: formatDate(new Date(payment?.createdAt || "")),
|
||||
// });
|
||||
const res = await verifyPayment({
|
||||
id: payment?.id ?? "",
|
||||
method: "TRANSFER",
|
||||
});
|
||||
setVerifying(false);
|
||||
// switch (true) {
|
||||
// case res?.success === true:
|
||||
// toast.success(res.message);
|
||||
// break;
|
||||
// case res?.success === false:
|
||||
// toast.error(res?.message);
|
||||
// break;
|
||||
// default:
|
||||
// toast.error("Unexpected error occurred.");
|
||||
// }
|
||||
}}
|
||||
size={"lg"}
|
||||
className="mb-4"
|
||||
|
Reference in New Issue
Block a user