mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-07 04:12:36 +00:00
fix: potential null-or-undefined in DriverService
This commit is contained in:
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'];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user