mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-12 12:30:47 +00:00
fix: potential null-or-undefined in DriverService
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user