@@ -7,7 +7,7 @@ import { saveUserResultAction } from "../../actions";
7
7
// utils
8
8
import { calculateAccuracy , calculateCPM , noopKeys } from "./utils" ;
9
9
10
- // Componenets
10
+ // Components
11
11
import Code from "./code" ;
12
12
import Footer from "./footer" ;
13
13
import Header from "./header" ;
@@ -38,7 +38,7 @@ export default function RacePractice({ user, snippet }: RacePracticeProps) {
38
38
const router = useRouter ( ) ;
39
39
const isRaceFinished = input === code ;
40
40
41
- const isUserOnAdroid = useCheckForUserNavigator ( "android" ) ;
41
+ const isUserOnAndroid = useCheckForUserNavigator ( "android" ) ;
42
42
43
43
useEffect ( ( ) => {
44
44
localStorage . removeItem ( "chartTimeStamp" ) ;
@@ -94,10 +94,10 @@ export default function RacePractice({ user, snippet }: RacePracticeProps) {
94
94
}
95
95
}
96
96
} ) ;
97
-
97
+
98
98
// eslint-disable-next-line @typescript-eslint/no-explicit-any
99
- function handleInputEvent ( e : any ) {
100
- if ( ! isUserOnAdroid ) return ;
99
+ function handleInputEvent ( e : any /** React.FormEvent<HTMLInputElement>*/ ) {
100
+ if ( ! isUserOnAndroid ) return ;
101
101
if ( ! startTime ) {
102
102
setStartTime ( new Date ( ) ) ;
103
103
}
@@ -123,7 +123,7 @@ export default function RacePractice({ user, snippet }: RacePracticeProps) {
123
123
// For ANDROID.
124
124
// since the enter button on a mobile keyboard/keypad actually
125
125
// returns a e.key of "Enter" onkeydown, we just set a condition for that.
126
- if ( isUserOnAdroid ) {
126
+ if ( isUserOnAndroid ) {
127
127
switch ( e . key ) {
128
128
case "Enter" :
129
129
if ( ! startTime ) {
0 commit comments