Skip to content

Commit 096171d

Browse files
committed
Fix TypeScript errors
1 parent 913ff56 commit 096171d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/umbreld/source/modules/blacklist-uas/blacklist-uas.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default async function blacklistUASDriver() {
3131
if (!uevent.includes('DRIVER=uas')) continue
3232
const [vendorId, productId] = uevent
3333
.split('\n')
34-
.find((line) => line?.startsWith('PRODUCT='))
34+
.find((line) => line?.startsWith('PRODUCT='))!
3535
.replace('PRODUCT=', '')
3636
.split('/')
3737
const deviceId = `${vendorId}:${productId}`

packages/umbreld/source/modules/server/trpc/routes/apps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default router({
5151
}),
5252
)
5353

54-
const appDataSortedByNames = appData.sort((a, b) => a.name?.localeCompare(b.name))
54+
const appDataSortedByNames = appData.sort((a, b) => (a.name ?? '').localeCompare(b.name ?? ''))
5555

5656
return appDataSortedByNames
5757
}),

0 commit comments

Comments
 (0)