Skip to content

Commit

Permalink
Fixed robot image errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingMaster121 committed Oct 19, 2024
1 parent 8edf15e commit d04c12d
Show file tree
Hide file tree
Showing 3 changed files with 1,695 additions and 1,697 deletions.
Binary file added scoutingapp/public/4099.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions scoutingapp/src/components/pages/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export function Page(props: PageSetup) {
}

const setRobotImage = (newState: any) => {
setState(newState);
useState(newState);
if (newState.buttonClicked) {
setState((prevState) => ({
useState((prevState: any) => ({
...prevState,
robotNumber: prevState.textInputValue,
}));
Expand Down
Loading

0 comments on commit d04c12d

Please sign in to comment.