@devrongx/games 0.4.36 → 0.4.37

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrongx/games",
3
- "version": "0.4.36",
3
+ "version": "0.4.37",
4
4
  "description": "Game UI components for sports prediction markets",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",
@@ -139,4 +139,5 @@ export interface ITDMatchesParams {
139
139
  export interface ITDClientConfig {
140
140
  baseURL: string;
141
141
  getToken: () => string | null;
142
+ partnerSource?: string;
142
143
  }
@@ -40,7 +40,8 @@ export async function fetchTDPools(
40
40
  matchId: number,
41
41
  partnerSource?: string,
42
42
  ): Promise<ITDPool[]> {
43
- const qs = partnerSource ? `?partner_source=${encodeURIComponent(partnerSource)}` : "";
43
+ const source = partnerSource ?? useTDClientStore.getState().partnerSource;
44
+ const qs = source ? `?partner_source=${encodeURIComponent(source)}` : "";
44
45
  return tdFetch<ITDPool[]>(`/api/pools/match/${matchId}${qs}`);
45
46
  }
46
47