This commit is contained in:
+10
-5
@@ -1701,11 +1701,16 @@ const quickSummaryLimits = (
|
||||
(limit) =>
|
||||
limit.windowDurationMinutes > 0 && limit.windowDurationMinutes < 24 * 60,
|
||||
);
|
||||
const week = sorted.find(
|
||||
(limit) =>
|
||||
limit.windowDurationMinutes >= 6 * 24 * 60 &&
|
||||
limit.windowDurationMinutes <= 8 * 24 * 60,
|
||||
);
|
||||
const week =
|
||||
sorted.find(
|
||||
(limit) =>
|
||||
limit.limitId.toLowerCase() === "codex" &&
|
||||
limit.windowDurationMinutes === 168 * 60,
|
||||
) ??
|
||||
sorted.find(
|
||||
(limit) =>
|
||||
limit.limitName == null && limit.windowDurationMinutes === 168 * 60,
|
||||
);
|
||||
const selected: Array<{ kind: QuickLimitKind; limit: Limit }> = [];
|
||||
if (hour) selected.push({ kind: "hour", limit: hour });
|
||||
if (week && week !== hour) selected.push({ kind: "week", limit: week });
|
||||
|
||||
Reference in New Issue
Block a user