diff --git a/project/src/controllers/InsuranceController.ts b/project/src/controllers/InsuranceController.ts index b07b7292..4024cb13 100644 --- a/project/src/controllers/InsuranceController.ts +++ b/project/src/controllers/InsuranceController.ts @@ -102,7 +102,13 @@ export class InsuranceController const insuranceTime = time || this.timeUtil.getTimestamp(); const profileInsuranceDetails = this.saveServer.getProfile(sessionID).insurance; - this.logger.debug(`Found ${profileInsuranceDetails.length} insurance packages in profile ${sessionID}`, true); + if (profileInsuranceDetails.length > 0) + { + this.logger.debug( + `Found ${profileInsuranceDetails.length} insurance packages in profile ${sessionID}`, + true, + ); + } return profileInsuranceDetails.filter((insured) => insuranceTime >= insured.scheduledTime); }