Debug and fix courses watching progress resolution
This commit is contained in:
@@ -43,7 +43,9 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
|
||||
postId: postId,
|
||||
profileId: profileId,
|
||||
};
|
||||
//console.log(postId, newData);
|
||||
if (!GlobalState.me.data) GlobalState.me.data = {};
|
||||
// Keep local viewer progress in sync so Courses can render immediately.
|
||||
GlobalState.me.data[postId] = newData;
|
||||
API.setDataValue(postId, newData);
|
||||
}
|
||||
|
||||
@@ -74,4 +76,4 @@ const styles = StyleSheet.create({
|
||||
width: 320,
|
||||
height: 200,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user