@opexa/portal-components 0.0.76 → 0.0.77
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.
|
@@ -5,7 +5,7 @@ export function getGameProviderData(query) {
|
|
|
5
5
|
return GAME_PROVIDER_DATA[query];
|
|
6
6
|
}
|
|
7
7
|
const arr = Object.values(GAME_PROVIDER_DATA);
|
|
8
|
-
const obj = arr.find((data) => data.
|
|
8
|
+
const obj = arr.find((data) => data.slug === query);
|
|
9
9
|
return obj ?? null;
|
|
10
10
|
}
|
|
11
11
|
export function getGameProviderDataOrThrow(query) {
|
|
@@ -5,7 +5,7 @@ export function getGameTypeData(query) {
|
|
|
5
5
|
return GAME_TYPE_DATA[query];
|
|
6
6
|
}
|
|
7
7
|
const arr = Object.values(GAME_TYPE_DATA);
|
|
8
|
-
const obj = arr.find((data) => data.
|
|
8
|
+
const obj = arr.find((data) => data.slug === query);
|
|
9
9
|
return obj ?? null;
|
|
10
10
|
}
|
|
11
11
|
export function getGameTypeDataOrThrow(query) {
|