diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-26 19:51:01 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-05-26 19:51:01 -0400 |
commit | 50660677fca55f550f8ab56558046409aad13461 (patch) | |
tree | 9d2586a8f138604b5b8d6d00627c1bbb256e2777 /src/screens/profile/CaptionScreen.tsx | |
parent | 0c512ea9bc2ad75b1ae356fa7166044510750581 (diff) |
Finish tagging functionality
Diffstat (limited to 'src/screens/profile/CaptionScreen.tsx')
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index d85ffead..8bffd82b 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -116,10 +116,10 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { const momentTagResponse = await postMomentTags( momentResponse.moment_id, tags.map((tag) => ({ - x: tag.x, - y: tag.y, - z: tag.z, - user_id: tag.id, + x: Math.floor(tag.x), + y: Math.floor(tag.y), + z: Math.floor(tag.z), + user_id: tag.user.id, })), ); if (!momentTagResponse) { |