@dubsdotapp/expo 0.5.34 → 0.5.35
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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/hooks/useCreateGame.ts +9 -1
package/dist/index.js
CHANGED
|
@@ -2225,6 +2225,7 @@ function useCreateGame() {
|
|
|
2225
2225
|
const away = event?.opponents?.[1]?.name ?? null;
|
|
2226
2226
|
const teamLabel = params.teamChoice === "home" ? teamNickname(home) : params.teamChoice === "away" ? teamNickname(away) : "Draw";
|
|
2227
2227
|
const message = `I just placed a ${wagerAmount} SOL bet on ${teamLabel} - Join me!`;
|
|
2228
|
+
const strTimestamp = typeof event?.startTime === "string" ? event.startTime.replace(/Z$/, "") : null;
|
|
2228
2229
|
const gameInvite = {
|
|
2229
2230
|
gameId: createResult.gameId,
|
|
2230
2231
|
gameAddress: createResult.gameAddress,
|
|
@@ -2240,7 +2241,7 @@ function useCreateGame() {
|
|
|
2240
2241
|
imageUrl: event?.media?.thumbnail ?? null,
|
|
2241
2242
|
strThumb: event?.media?.thumbnail ?? null,
|
|
2242
2243
|
strPoster: event?.media?.poster ?? null,
|
|
2243
|
-
strTimestamp
|
|
2244
|
+
strTimestamp,
|
|
2244
2245
|
creatorTeam: params.teamChoice,
|
|
2245
2246
|
creatorWallet: params.playerWallet
|
|
2246
2247
|
};
|