Skip to content

Commit

Permalink
Fixes last active filter badge showing up when filters other than the…
Browse files Browse the repository at this point in the history
… last active filter is applied (#8215)
  • Loading branch information
rithviknishad authored Jul 26, 2024
1 parent c3e1b1a commit f76248c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Components/Users/ManageUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,11 @@ export default function ManageUsers() {
value(
"Last Active",
"last_active_days",
qParams.last_active_days === "never"
? "Never"
: `in the last ${qParams.last_active_days} day${qParams.last_active_days > 1 ? "s" : ""}`,
(() => {
if (!qParams.last_active_days) return "";
if (qParams.last_active_days === "never") return "Never";
return `in the last ${qParams.last_active_days} day${qParams.last_active_days > 1 ? "s" : ""}`;
})(),
),
]}
/>
Expand Down

0 comments on commit f76248c

Please sign in to comment.