Skip to content

Commit e8c559b

Browse files
committed
fix: use older syntax for priority
1 parent 5e8ff69 commit e8c559b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detectors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exports.getUI = async function (context) {
4646
})
4747
)
4848

49-
return Array.from(uis).sort((a, b) => (b.priority ?? 1) - (a.priority ?? 1))[0]
49+
return Array.from(uis).sort((a, b) => (typeof b.priority !== 'undefined' ? b.priority : 1) - (typeof a.priority !== 'undefined' ? a.priority : 1))[0]
5050
}
5151

5252
exports.getPlugins = async function (context) {

0 commit comments

Comments
 (0)