mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
chore(eslint): add strict-boolean-expressions rule (#25768)
This commit is contained in:
@ -320,7 +320,7 @@ export class Range implements ComponentInterface {
|
||||
this.ionKnobMoveEnd.emit({ value: ensureValueInBounds(this.value) });
|
||||
};
|
||||
private getValue(): RangeValue {
|
||||
const value = this.value || 0;
|
||||
const value = this.value ?? 0;
|
||||
if (this.dualKnobs) {
|
||||
if (typeof value === 'object') {
|
||||
return value;
|
||||
|
Reference in New Issue
Block a user