Skip to content

Commit 4c3f2c7

Browse files
committed
style: fix biome formatting in quietMode.js and ai-feedback-stats.tsx
1 parent 5f2ff7e commit 4c3f2c7

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/modules/quietMode.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,19 @@ const UNIT_MAP = {
181181
* @param {Object} [config] - Per-guild config with quietMode.maxDurationMinutes
182182
* @returns {number} Duration in seconds, clamped to [MIN_DURATION_SECONDS, maxSeconds]
183183
*/
184-
export function parseDurationFromContent(content, defaultSeconds = DEFAULT_DURATION_SECONDS, config = null) {
184+
export function parseDurationFromContent(
185+
content,
186+
defaultSeconds = DEFAULT_DURATION_SECONDS,
187+
config = null,
188+
) {
185189
const text = content.toLowerCase();
186190

187191
// Determine effective max duration from config or fallback to hardcoded limit
188192
const configuredMaxMinutes = config?.quietMode?.maxDurationMinutes;
189-
const maxSeconds = (Number.isFinite(configuredMaxMinutes) && configuredMaxMinutes > 0)
190-
? Math.min(configuredMaxMinutes * 60, MAX_DURATION_SECONDS)
191-
: MAX_DURATION_SECONDS;
193+
const maxSeconds =
194+
Number.isFinite(configuredMaxMinutes) && configuredMaxMinutes > 0
195+
? Math.min(configuredMaxMinutes * 60, MAX_DURATION_SECONDS)
196+
: MAX_DURATION_SECONDS;
192197

193198
// Helper to clamp to valid range
194199
const clamp = (seconds) => Math.min(Math.max(seconds, MIN_DURATION_SECONDS), maxSeconds);

web/src/components/dashboard/ai-feedback-stats.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export function AiFeedbackStats() {
143143
innerRadius={50}
144144
outerRadius={75}
145145
dataKey="value"
146-
label={({ name, percent }) => `${name} ${(((percent ?? 0) * 100)).toFixed(0)}%`}
146+
label={({ name, percent }) =>
147+
`${name} ${((percent ?? 0) * 100).toFixed(0)}%`
148+
}
147149
labelLine={false}
148150
>
149151
{pieData.map((_, index) => (

0 commit comments

Comments
 (0)