mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-05-11 03:00:42 -04:00
fix: Correct display text for generic value comparison
Check if percent capture group is undefined OR empty
This commit is contained in:
@@ -714,7 +714,7 @@ export const parseGenericValueOrPercentComparison = (val: string): GenericCompar
|
||||
value: Number.parseFloat(groups.value),
|
||||
isPercent: groups.percent !== '',
|
||||
extra: groups.extra,
|
||||
displayText: `${groups.opStr} ${groups.value}${groups.percent === undefined ? '': '%'}`
|
||||
displayText: `${groups.opStr} ${groups.value}${groups.percent === undefined || groups.percent === '' ? '': '%'}`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user