fixed: ts build error
This commit is contained in:
parent
2c1ea4a31a
commit
8c384d5723
@ -18,7 +18,7 @@ const clearAuth = () => {
|
|||||||
localStorage.removeItem(AppConfig.AUTH_TOKEN_KEY);
|
localStorage.removeItem(AppConfig.AUTH_TOKEN_KEY);
|
||||||
localStorage.removeItem(AppConfig.AUTHED_PERSON_DATA_KEY);
|
localStorage.removeItem(AppConfig.AUTHED_PERSON_DATA_KEY);
|
||||||
}
|
}
|
||||||
export const setAuthToken = (token: string | null,profileData:UserProfile|null, expiry_time = -1) => {
|
export const setAuthToken = (token: string | null,profileData:UserProfile|null = null, expiry_time = -1) => {
|
||||||
if (!token) {
|
if (!token) {
|
||||||
clearAuth();
|
clearAuth();
|
||||||
return;
|
return;
|
||||||
|
@ -156,7 +156,7 @@ export default function VideoIndex() {
|
|||||||
ref={player}
|
ref={player}
|
||||||
url={state.playVideoUrl}
|
url={state.playVideoUrl}
|
||||||
onChange={(state) => {
|
onChange={(state) => {
|
||||||
if (state.end || state.error) setState({playingIndex: -1})
|
if (state.end || state.error) setState({playingId: -1})
|
||||||
}}
|
}}
|
||||||
onProgress={(current, duration) => {
|
onProgress={(current, duration) => {
|
||||||
setState({
|
setState({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user