KamoCRM

Add default value for usagePercent to handle undefined

Fixkamo-internal
Shipped
18 அக்டோபர், 2025 அன்று 12:13 AM UTC
Author
snadjafinia
Commit
c20399f

- Changed usagePercent > 80 to (usagePercent || 0) > 80 - Prevents TypeScript error when usagePercent is possibly undefined - Defaults to 0 if undefined, showing green color Resolves TypeScript build error on line 462.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing