diff --git a/libs/serve-badge.ts b/libs/serve-badge.ts index a55a007..bcb2de1 100644 --- a/libs/serve-badge.ts +++ b/libs/serve-badge.ts @@ -28,7 +28,7 @@ export default function (req, res, options: ServeBadgeOptions) { style: query.style || process.env.BADGE_STYLE, icon: _icon.src, iconWidth: iconWidth || _icon.width, - scale: scale && parseInt(scale, 10), + scale: scale && parseInt(scale, 10) || 1, }) const staleControl = `stale-while-revalidate=604800, stale-if-error=604800`