fix: potential null-or-undefined in DriverService

This commit is contained in:
KernelDeimos committed 2024-11-19 13:08:58 -05:00
1 parent 7ed557f375
commit 01725ffebf
1 file changed
+1 -1
@@ -321,7 +321,7 @@ class DriverService extends BaseService {
name: 'enforce monthly usage limit',
on_call: async args => {
// Typo-Tolerance
if ( effective_policy['monthy-limit'] ) {
if ( effective_policy?.['monthy-limit'] ) {
effective_policy['monthly-limit'] = effective_policy['monthy-limit'];
}