@@ -8,7 +8,7 @@ import type { Variants } from './variants'
8
8
export function compileCandidates (
9
9
rawCandidates : Iterable < string > ,
10
10
designSystem : DesignSystem ,
11
- { onInvalidCanidate } : { onInvalidCanidate ?: ( candidate : string ) => void } = { } ,
11
+ { onInvalidCandidate } : { onInvalidCandidate ?: ( candidate : string ) => void } = { } ,
12
12
) {
13
13
let nodeSorting = new Map <
14
14
AstNode ,
@@ -21,7 +21,7 @@ export function compileCandidates(
21
21
for ( let rawCandidate of rawCandidates ) {
22
22
let candidate = designSystem . parseCandidate ( rawCandidate )
23
23
if ( candidate === null ) {
24
- onInvalidCanidate ?.( rawCandidate )
24
+ onInvalidCandidate ?.( rawCandidate )
25
25
continue // Bail, invalid candidate
26
26
}
27
27
candidates . set ( candidate , rawCandidate )
@@ -36,7 +36,7 @@ export function compileCandidates(
36
36
next: for ( let [ candidate , rawCandidate ] of candidates ) {
37
37
let astNode = designSystem . compileAstNodes ( rawCandidate )
38
38
if ( astNode === null ) {
39
- onInvalidCanidate ?.( rawCandidate )
39
+ onInvalidCandidate ?.( rawCandidate )
40
40
continue next
41
41
}
42
42
0 commit comments