fix: Limite du nombre de responsables légaux à 2 [#27]

This commit is contained in:
N3WT DE COMPET
2025-05-02 15:49:46 +02:00
parent 05542dfc40
commit 1ced4a1069
2 changed files with 18 additions and 3 deletions

View File

@ -69,7 +69,9 @@ export default function FileUpload({
<CloudUpload className="w-6 h-6 text-emerald-500" />
<p className="text-sm font-medium text-gray-800">
<span className="font-semibold">
{existingFile.split('/').pop()}
{typeof existingFile === 'string'
? existingFile.split('/').pop()
: existingFile?.name || 'Fichier inconnu'}
</span>
</p>
</div>