Skip to content

Commit 2886e3d

Browse files
committed
Fix variants in 'they respond' module
1 parent 3185caa commit 2886e3d

2 files changed

Lines changed: 25 additions & 27 deletions

File tree

src/components/Me/ChallengeTheyRespond.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Spinner from "../Spinner";
1515
import ChallengeViewModal from "./ChallengeViewModal";
1616
import { useTranslation } from "react-i18next";
1717
import { useStore } from "../../stores";
18+
import { expandVariants } from "../../lib/expandVariants";
1819

1920
const allSize = Number.MAX_SAFE_INTEGER;
2021

@@ -34,7 +35,7 @@ function ChallengeTheyRespond({ challenges, fetching, handleChallengeRevoke }) {
3435
const ret = {
3536
id: g.id,
3637
metaGame: g.metaGame,
37-
variants: g.variants,
38+
variants: expandVariants(g.metaGame, g.variants),
3839
numPlayers: g.numPlayers,
3940
gameName: "Unknown",
4041
dateIssued: g.dateIssued,
@@ -69,9 +70,6 @@ function ChallengeTheyRespond({ challenges, fetching, handleChallengeRevoke }) {
6970
}),
7071
columnHelper.accessor("variants", {
7172
header: "Variants",
72-
cell: (props) => {
73-
props.getValue().join(", ");
74-
},
7573
}),
7674
columnHelper.accessor("numPlayers", {
7775
header: "# players",

src/config/local.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
1-
// const API_ENDPOINT =
2-
// "https://alyhqu85me.execute-api.us-east-1.amazonaws.com/dev/";
3-
// const WS_ENDPOINT = "wss://qwmw4fb0l6.execute-api.us-east-1.amazonaws.com/dev";
4-
5-
// module.exports = {
6-
// COGNITO_USER_POOL_ID: "us-east-1_2zrzbEjoU",
7-
// COGNITO_DOMAIN: "auth.dev.abstractplay.com", // "abstractplaydev.auth.us-east-1.amazoncognito.com",
8-
// COGNITO_APPID: "14mpql1tmvntup4p2anm4jt782",
9-
// COGNITO_COOKIE_DOMAIN: "localhost",
10-
// COGNITO_REDIRECT_LOGIN: "http://localhost:3000",
11-
// COGNITO_REDIRECT_LOGOUT: "http://localhost:3000",
12-
// API_ENDPOINT_OPEN: API_ENDPOINT + "query",
13-
// API_ENDPOINT_AUTH: API_ENDPOINT + "authQuery",
14-
// PUSH_API_URL: API_ENDPOINT + "authQuery",
15-
// API_ENDPOINT,
16-
// WS_ENDPOINT,
17-
// };
18-
191
const API_ENDPOINT =
20-
"https://7n1lziet28.execute-api.us-east-1.amazonaws.com/prod/";
21-
const WS_ENDPOINT = "wss://2ce8ziwh86.execute-api.us-east-1.amazonaws.com/prod";
2+
"https://alyhqu85me.execute-api.us-east-1.amazonaws.com/dev/";
3+
const WS_ENDPOINT = "wss://qwmw4fb0l6.execute-api.us-east-1.amazonaws.com/dev";
224

235
module.exports = {
24-
COGNITO_USER_POOL_ID: "us-east-1_YCjgSZHJm",
25-
COGNITO_DOMAIN: "auth.abstractplay.com", // "abstractplaylogin.auth.us-east-1.amazoncognito.com",
26-
COGNITO_APPID: "2isan3ctk1aabt2v6r6aptlpg",
6+
COGNITO_USER_POOL_ID: "us-east-1_2zrzbEjoU",
7+
COGNITO_DOMAIN: "auth.dev.abstractplay.com", // "abstractplaydev.auth.us-east-1.amazoncognito.com",
8+
COGNITO_APPID: "14mpql1tmvntup4p2anm4jt782",
279
COGNITO_COOKIE_DOMAIN: "localhost",
2810
COGNITO_REDIRECT_LOGIN: "http://localhost:3000",
2911
COGNITO_REDIRECT_LOGOUT: "http://localhost:3000",
@@ -33,3 +15,21 @@ module.exports = {
3315
API_ENDPOINT,
3416
WS_ENDPOINT,
3517
};
18+
19+
// const API_ENDPOINT =
20+
// "https://7n1lziet28.execute-api.us-east-1.amazonaws.com/prod/";
21+
// const WS_ENDPOINT = "wss://2ce8ziwh86.execute-api.us-east-1.amazonaws.com/prod";
22+
23+
// module.exports = {
24+
// COGNITO_USER_POOL_ID: "us-east-1_YCjgSZHJm",
25+
// COGNITO_DOMAIN: "auth.abstractplay.com", // "abstractplaylogin.auth.us-east-1.amazoncognito.com",
26+
// COGNITO_APPID: "2isan3ctk1aabt2v6r6aptlpg",
27+
// COGNITO_COOKIE_DOMAIN: "localhost",
28+
// COGNITO_REDIRECT_LOGIN: "http://localhost:3000",
29+
// COGNITO_REDIRECT_LOGOUT: "http://localhost:3000",
30+
// API_ENDPOINT_OPEN: API_ENDPOINT + "query",
31+
// API_ENDPOINT_AUTH: API_ENDPOINT + "authQuery",
32+
// PUSH_API_URL: API_ENDPOINT + "authQuery",
33+
// API_ENDPOINT,
34+
// WS_ENDPOINT,
35+
// };

0 commit comments

Comments
 (0)