vdb-ai-chat 1.0.11 → 1.0.12

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.
@@ -149,7 +149,7 @@ export const ChatWidget = forwardRef<ChatWidgetRef, ChatWidgetProps>(
149
149
  delete searchPayload.three_x;
150
150
  }
151
151
 
152
- searchPayload = JSON.stringify(searchPayload);
152
+ const stringifiedSearchPayload = JSON.stringify(searchPayload);
153
153
  const payload = item?.search_payload;
154
154
  if (!payload) return;
155
155
  const isLabgrown = (typeof payload.lab_grown === "string" ? payload.lab_grown === "true" : typeof payload.lab_grown === "boolean" ? payload.lab_grown : false);
@@ -160,7 +160,7 @@ export const ChatWidget = forwardRef<ChatWidgetRef, ChatWidgetProps>(
160
160
  isLabgrown ? "lab_grown_diamond" : "diamond"
161
161
  }&fromNewFilterScreen=false&filterSplitStep=1&sectionName=${
162
162
  searchPayload.pair === "pair" ? "Pairs" : "Single Stones"
163
- }&breadCrumbLabel=Stone%20Search&enterSecondFlow=false&saved_search=${searchPayload}`;
163
+ }&breadCrumbLabel=Stone%20Search&enterSecondFlow=false&saved_search=${stringifiedSearchPayload}`;
164
164
 
165
165
  if (onViewAllPress) {
166
166
  onViewAllPress(deepLinkUrl, payload);