mainstack-payments 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26456,15 +26456,15 @@ const WL = "Payment Completed", HL = ({
|
|
|
26456
26456
|
type: "submit",
|
|
26457
26457
|
isLoading: Bn,
|
|
26458
26458
|
onClick: async (fe) => {
|
|
26459
|
-
if (fe.preventDefault(), Qe(!0),
|
|
26459
|
+
if (fe.preventDefault(), Qe(!0), l) {
|
|
26460
26460
|
const je = await l(z.values);
|
|
26461
|
-
if (je != null && je.terminate) {
|
|
26461
|
+
if (await z.validateForm(), je != null && je.terminate) {
|
|
26462
26462
|
Qe(!1);
|
|
26463
26463
|
return;
|
|
26464
26464
|
}
|
|
26465
|
-
Qe(!1);
|
|
26465
|
+
z.submitForm(), Qe(!1);
|
|
26466
26466
|
} else
|
|
26467
|
-
Qe(!1);
|
|
26467
|
+
z.submitForm(), Qe(!1);
|
|
26468
26468
|
},
|
|
26469
26469
|
_hover: {
|
|
26470
26470
|
opacity: 0.8,
|