tf-checkout-react 1.5.3 → 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.3",
2
+ "version": "1.5.4",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -59,9 +59,8 @@ const WaitingList = ({
59
59
 
60
60
  const handleSubmit = async (values: WaitingListFields) => {
61
61
  try {
62
- const { ticketTypeId, ...attributes } = values
63
62
  setLoading(true)
64
- const response = await addToWaitingList(eventId, { attributes, ticketTypeId, })
63
+ const response = await addToWaitingList(eventId, { attributes: values })
65
64
 
66
65
  if (response.success) {
67
66
  setShowSuccessMessage(true)
@@ -107,8 +107,8 @@ interface IWaitingListRequestData {
107
107
  firstName: string;
108
108
  lastName: string;
109
109
  quantity: string;
110
+ ticketTypeId: string;
110
111
  };
111
- ticketTypeId: string;
112
112
  }
113
113
  type IWaitingListResponse = IAxiosResponseData
114
114