mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 05:42:26 -06:00
[chore] Settings refactor fix 2 (#1357)
* fix emoji query tagging * fix proxy url for gts instance * fix: don't flash callback error on authorize flow
This commit is contained in:
parent
13e3aaaed1
commit
747683ba54
11 changed files with 37 additions and 31 deletions
|
|
@ -28,17 +28,18 @@ const Loading = require("../loading");
|
|||
const { Error } = require("../error");
|
||||
|
||||
module.exports = function Authorization({ App }) {
|
||||
const loginState = Redux.useSelector((state) => state.oauth.loginState);
|
||||
const [hasStoredLogin] = React.useState(loginState != "none" && loginState != "logout");
|
||||
const { loginState, expectingRedirect } = Redux.useSelector((state) => state.oauth);
|
||||
|
||||
const { isLoading, isSuccess, data: account, error } = query.useVerifyCredentialsQuery(undefined, {
|
||||
skip: loginState == "none" || loginState == "logout"
|
||||
skip: loginState == "none" || loginState == "logout" || expectingRedirect
|
||||
});
|
||||
|
||||
console.log("skip verify:", loginState, expectingRedirect);
|
||||
|
||||
let showLogin = true;
|
||||
let content = null;
|
||||
|
||||
if (isLoading && hasStoredLogin) {
|
||||
if (isLoading) {
|
||||
showLogin = false;
|
||||
|
||||
let loadingInfo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue