Skip to content

Commit 94e2ead

Browse files
Make ordering for BooleanValues explicit (#2675)
1 parent dad9a4a commit 94e2ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/model/field_value.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class BooleanValue extends FieldValue {
203203

204204
compareTo(other: FieldValue): number {
205205
if (other instanceof BooleanValue) {
206-
return primitiveComparator(this, other);
206+
return primitiveComparator(this.internalValue, other.internalValue);
207207
}
208208
return this.defaultCompareTo(other);
209209
}

0 commit comments

Comments
 (0)