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.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) {
|
||||
clearAuth();
|
||||
return;
|
||||
|
@ -156,7 +156,7 @@ export default function VideoIndex() {
|
||||
ref={player}
|
||||
url={state.playVideoUrl}
|
||||
onChange={(state) => {
|
||||
if (state.end || state.error) setState({playingIndex: -1})
|
||||
if (state.end || state.error) setState({playingId: -1})
|
||||
}}
|
||||
onProgress={(current, duration) => {
|
||||
setState({
|
||||
|
Loading…
x
Reference in New Issue
Block a user