fix(agents): badge "Nouveau" disparaît après modification de l'agent
Compare createdAt et updatedAt au lieu du seuil de 24h. Prisma met à jour updatedAt automatiquement à chaque édition. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -89,7 +89,7 @@ export function AgentCard({ agent, onEdit, onRefresh, onToggle }: AgentCardProps
|
||||
const Icon = config.icon
|
||||
const lastAction = agent.actions[0]
|
||||
const dateLocale = language === 'fr' ? fr : enUS
|
||||
const isNew = Date.now() - new Date(agent.createdAt).getTime() < 24 * 60 * 60 * 1000
|
||||
const isNew = new Date(agent.createdAt).getTime() === new Date(agent.updatedAt).getTime()
|
||||
|
||||
const handleRun = async () => {
|
||||
setIsRunning(true)
|
||||
|
||||
Reference in New Issue
Block a user