fix token
This commit is contained in:
parent
16932959d5
commit
51f4599031
BIN
frontend/src/.DS_Store
vendored
BIN
frontend/src/.DS_Store
vendored
Binary file not shown.
|
@ -19,8 +19,8 @@ export function useTgData() {
|
||||||
const [user, token]: [IUserTg, string] = verificationTg();
|
const [user, token]: [IUserTg, string] = verificationTg();
|
||||||
if (token.length != 0 && user.id && user.id.length != 0) {
|
if (token.length != 0 && user.id && user.id.length != 0) {
|
||||||
setVerified(true);
|
setVerified(true);
|
||||||
//dispatch<any>(saveToken(token));
|
dispatch<any>(saveToken(token));
|
||||||
dispatch<any>(saveToken(savedToken));
|
//dispatch<any>(saveToken(savedToken));
|
||||||
dispatch<any>(setUserTg(user));
|
dispatch<any>(setUserTg(user));
|
||||||
} else {
|
} else {
|
||||||
setVerified(false);
|
setVerified(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user