tf-checkout-react 1.5.2 → 1.5.4
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.
- package/dist/tf-checkout-react.cjs.development.js +3 -1
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +3 -1
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/waitingList/index.tsx +1 -1
- package/src/types/api/common.d.ts +7 -5
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ const WaitingList = ({
|
|
|
60
60
|
const handleSubmit = async (values: WaitingListFields) => {
|
|
61
61
|
try {
|
|
62
62
|
setLoading(true)
|
|
63
|
-
const response = await addToWaitingList(eventId, values)
|
|
63
|
+
const response = await addToWaitingList(eventId, { attributes: values })
|
|
64
64
|
|
|
65
65
|
if (response.success) {
|
|
66
66
|
setShowSuccessMessage(true)
|
|
@@ -102,11 +102,13 @@ interface IStatesResponse extends IAxiosResponseData {
|
|
|
102
102
|
|
|
103
103
|
// Waiting List
|
|
104
104
|
interface IWaitingListRequestData {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
attributes : {
|
|
106
|
+
email: string;
|
|
107
|
+
firstName: string;
|
|
108
|
+
lastName: string;
|
|
109
|
+
quantity: string;
|
|
110
|
+
ticketTypeId: string;
|
|
111
|
+
};
|
|
110
112
|
}
|
|
111
113
|
type IWaitingListResponse = IAxiosResponseData
|
|
112
114
|
|