Greptile review fixes

This commit is contained in:
x032205
2025-08-19 14:01:39 +08:00
parent 6d5bed756a
commit bceddab89f
5 changed files with 20 additions and 13 deletions
@@ -40,14 +40,20 @@ export const ViewIdentityUniversalAuthContent = ({
});
async function clearLockouts() {
const deleted = await clearLockoutsFn({ identityId });
createNotification({
text: `Successfully cleared ${deleted} lockout${deleted === 1 ? "" : "s"}`,
type: "success"
});
setLockedOutState(false);
try {
const deleted = await clearLockoutsFn({ identityId });
createNotification({
text: `Successfully cleared ${deleted} lockout${deleted === 1 ? "" : "s"}`,
type: "success"
});
setLockedOutState(false);
} catch (error) {
console.error(error);
createNotification({
text: "Failed to clear lockouts. Please try again.",
type: "error"
});
}
}
if (isPending || clientSecretsPending) {