Skip to content

Commit 01725ff

Browse files
committed
fix: potential null-or-undefined in DriverService
1 parent 7ed557f commit 01725ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/services/drivers/DriverService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class DriverService extends BaseService {
321321
name: 'enforce monthly usage limit',
322322
on_call: async args => {
323323
// Typo-Tolerance
324-
if ( effective_policy['monthy-limit'] ) {
324+
if ( effective_policy?.['monthy-limit'] ) {
325325
effective_policy['monthly-limit'] = effective_policy['monthy-limit'];
326326
}
327327

0 commit comments

Comments
 (0)