Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sha-dos committed Mar 1, 2024
1 parent 27b2f8c commit b27f1d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/auto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const Auto = ({alliance, updateAutoNotesCollected, updateAutoNotesAttempt
useEffect(() => {
const updateOffsets = () => {
if (imageRef.current) {
//@ts-ignore
const rect = imageRef.current.getBoundingClientRect();
console.log(rect.left + ", " + rect.top);
setOffsetX(rect.left);
Expand Down
1 change: 1 addition & 0 deletions app/teleop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export const Teleop = ({alliance, updateNotesAttempted, updatePark, humanPlayerA
useEffect(() => {
const updateOffsets = () => {
if (imageRef.current) {
//@ts-ignore
const rect = imageRef.current.getBoundingClientRect();
console.log(rect.left + ", " + rect.top);
setOffsetX(rect.left);
Expand Down
1 change: 1 addition & 0 deletions app/viewer/match.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const TeamData = ({team}: {team: TeamMatchData}) => {
useEffect(() => {
const updateOffsets = () => {
if (imageRef.current) {
//@ts-ignore
const rect = imageRef.current.getBoundingClientRect();
console.log(rect.left + ", " + rect.top);
setOffsetX(rect.left);
Expand Down

0 comments on commit b27f1d4

Please sign in to comment.