Debug and fix courses watching progress resolution

This commit is contained in:
Adolfo Reyna
2026-02-20 20:52:26 -05:00
parent 058b060d03
commit 83604f5eaa
3 changed files with 106 additions and 19 deletions

View File

@@ -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,
},
});
});