Merge pull request #48 from TNG-dev/hotfix-settings401

This commit is contained in:
zkldi
2021-12-01 11:29:30 +00:00
committed by GitHub
4 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export default function ResetPasswordPage() {
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ code, password }),
body: JSON.stringify({ code, "!password": password }),
},
true,
true
+1 -1
View File
@@ -134,7 +134,7 @@ export default function ImportRoutes() {
</Route>
<Route exact path="/dashboard/import/sdvx-min">
<KAIIntegrationPage
hash="5885d4123b6db3f0127111a587ea6549f533a1*78dc2e198d31f98bed4ffd0cad"
hash="5885d4123b6db3f0127111a587ea6549f533a178dc2e198d31f98bed4ffd0cad"
clientID={process.env.REACT_APP_MIN_CLIENT_ID ?? ""}
redirectUri={`${window.location.origin}/oauth2-callback/min`}
kaiType="MIN"
+5 -3
View File
@@ -257,9 +257,11 @@ function UserGamePlaytypeRoutes({ reqUser, game }: { reqUser: PublicUserDocument
<Route exact path="/dashboard/users/:userID/games/:game/:playtype/leaderboard">
<LeaderboardsPage reqUser={reqUser} game={game} playtype={playtype} />
</Route>
<Route exact path="/dashboard/users/:userID/games/:game/:playtype/settings">
<UGPTSettingsPage reqUser={reqUser} game={game} playtype={playtype} />
</Route>
<RequireAuthAsUserParam>
<Route exact path="/dashboard/users/:userID/games/:game/:playtype/settings">
<UGPTSettingsPage reqUser={reqUser} game={game} playtype={playtype} />
</Route>
</RequireAuthAsUserParam>
<Route path="*">
<ErrorPage statusCode={404} />
</Route>
+5 -5
View File
@@ -191,9 +191,9 @@ export function Sleep(ms: number) {
}
export function HistorySafeGoBack(history: ReturnType<typeof useHistory>) {
if (history.length === 1) {
history.replace("/");
} else {
history.goBack();
}
// if (history.length === 1) {
history.replace("/");
// } else {
// history.goBack();
// }
}