@timardex/cluemart-shared 1.0.6 → 1.0.7

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/index.cjs CHANGED
@@ -1298,10 +1298,10 @@ var CREATE_CHAT_MUTATION = import_client5.gql`
1298
1298
  var SEND_CHAT_MESSAGE_MUTATION = import_client5.gql`
1299
1299
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1300
1300
  sendChatMessage(_id: $_id, input: $input) {
1301
- ...ChatFields
1301
+ ...ChatMessageFields
1302
1302
  }
1303
1303
  }
1304
- ${CHAT_FIELDS_FRAGMENT}
1304
+ ${CHAT_MESSAGE_FIELDS_FRAGMENT}
1305
1305
  `;
1306
1306
  var DELETE_CHAT_MUTATION = import_client5.gql`
1307
1307
  mutation deleteChat($_id: ID!) {
@@ -1412,7 +1412,7 @@ var import_client7 = require("@apollo/client");
1412
1412
  var useGetChat = (_id) => {
1413
1413
  const { loading, error, data, refetch } = (0, import_client7.useQuery)(CHAT, {
1414
1414
  fetchPolicy: "network-only",
1415
- skip: _id === "",
1415
+ skip: !_id,
1416
1416
  variables: { _id }
1417
1417
  });
1418
1418
  const chat = data?.chat;