diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-16 15:11:35 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-16 15:11:35 -0400 |
commit | c22c19c9eeb28641d36cb9df38fe95301e0f768c (patch) | |
tree | c66a10c8881ad6ea5fb861f9901d4103c9b2d4d4 | |
parent | 5d2703d434d38b633fc8b27b32a4f6dd5fabd1bb (diff) |
Change positions to 0 if video
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 6bcf0e24..d07743ad 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -153,9 +153,9 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { const formattedTags = () => { return tags.map((tag) => ({ - x: tag.x, - y: tag.y, - z: tag.z, + x: isMediaAVideo ? 0 : tag.x, + y: isMediaAVideo ? 0 : tag.y, + z: isMediaAVideo ? 0 : tag.z, user_id: tag.user.id, })); }; |