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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.2",
2
+ "version": "1.5.4",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -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
- email: string;
106
- firstName: string;
107
- lastName: string;
108
- quantity: string;
109
- ticketTypeId: string;
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