@timardex/cluemart-shared 1.5.525 → 1.5.526

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.d.mts CHANGED
@@ -2325,7 +2325,7 @@ declare const useGetGames: () => {
2325
2325
  games: GameDocType[];
2326
2326
  }>>;
2327
2327
  };
2328
- declare const useGetGame: (_id: string) => {
2328
+ declare const useGetGame: (_id?: string) => {
2329
2329
  error: _apollo_client.ApolloError | undefined;
2330
2330
  game: GameDocType | null;
2331
2331
  loading: boolean;
package/dist/index.d.ts CHANGED
@@ -2325,7 +2325,7 @@ declare const useGetGames: () => {
2325
2325
  games: GameDocType[];
2326
2326
  }>>;
2327
2327
  };
2328
- declare const useGetGame: (_id: string) => {
2328
+ declare const useGetGame: (_id?: string) => {
2329
2329
  error: _apollo_client.ApolloError | undefined;
2330
2330
  game: GameDocType | null;
2331
2331
  loading: boolean;
package/dist/index.mjs CHANGED
@@ -6123,8 +6123,8 @@ var useGetGames = () => {
6123
6123
  var useGetGame = (_id) => {
6124
6124
  const { loading, error, data, refetch } = useQuery13(GET_GAME, {
6125
6125
  fetchPolicy: "network-only",
6126
- skip: !_id || _id === "",
6127
- variables: { _id }
6126
+ skip: !_id,
6127
+ variables: _id ? { _id } : void 0
6128
6128
  });
6129
6129
  const game = data?.game || null;
6130
6130
  return { error, game, loading, refetch };