Skip to content

Commit

Permalink
Fix variable name in getColorsItem function
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Mar 15, 2024
1 parent 9cc4eb0 commit a21f8df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/language-service/src/providers/completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ function getColorsItem(css: MasterCSS = new MasterCSS()): CompletionItem[] {

let colorValue
let colorSpace
if (eachVariable.themes) {
colorValue = Object.values(eachVariable.themes)[0].value
colorSpace = Object.values<any>(eachVariable.themes)[0].space
if (eachVariable.modes) {
colorValue = Object.values(eachVariable.modes)[0].value
colorSpace = Object.values<any>(eachVariable.modes)[0].space
} else {
colorValue = eachVariable.value
colorSpace = eachVariable.space
Expand Down

0 comments on commit a21f8df

Please sign in to comment.