Repository navigation
Conversation
| {drivingDataArray.map((drivingData, index) => { | ||
| if (drivingData.log.match.type !== "test") { | ||
| return ( | ||
| <option key={index} value={index}> | ||
| {drivingData.log.match.type + | ||
| " " + | ||
| drivingData.log.match.number} | ||
| </option> |
There was a problem hiding this comment.
why not use .filter here too?
There was a problem hiding this comment.
typescript is a lil dum dum and can't understant the type verification in the filter so I'd need to check with the if either way, so I didn't add the redundant filter
| <Route path={"/view"} element={<Viewer />} /> | ||
| <Route path={"/add"} element={<Adder />} /> |
There was a problem hiding this comment.
your choice, but wouldn't it be more comfortable if both were in the same page?
There was a problem hiding this comment.
It's separate because one is for the computer with the log post match, and the other is for the drivers' phone when they want to know how well they did. I agree that it'll be comfortable if there was a link from one page to the other, but I'm more focoused on the MVP
| const [drivingData, setDrivingData] = useState<DrivingData | undefined>( | ||
| undefined, | ||
| ); |
There was a problem hiding this comment.
| const [drivingData, setDrivingData] = useState<DrivingData | undefined>( | |
| undefined, | |
| ); | |
| const [drivingData, setDrivingData] = useState<DrivingData>(); |
Pretty sure this does the same thing
There was a problem hiding this comment.
yes, but it's less informative
No description provided.