fix: Reusable Pre-Auth Keys no longer show expired when used (#88)
This commit is contained in:
parent
698122068d
commit
9bb20024fa
2 changed files with 2 additions and 2 deletions
|
|
@ -137,7 +137,7 @@ export default function Page() {
|
|||
const expiry = new Date(key.expiration);
|
||||
|
||||
if (status === 'Active') {
|
||||
return !(expiry < now) && !key.used;
|
||||
return !(expiry < now) && (!key.used || key.reusable);
|
||||
}
|
||||
|
||||
if (status === 'Used/Expired') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue