fix: potential null-or-undefined in DriverService

This commit is contained in:
KernelDeimos
2024-11-19 13:08:58 -05:00
parent 7ed557f375
commit 01725ffebf
@@ -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'];
}