added key to map function

This commit was merged in pull request #17.
This commit is contained in:
victorAnumudu
2025-04-22 19:12:08 +01:00
parent fc9925a837
commit 321122258a
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ export default function LoansCom() {
</thead>
<tbody>
{(data && data.length > 0) ? data?.map((item, index) => (
<tr className="py-2 border-t border-dashed border-slate-300">
<tr key={index} className="py-2 border-t border-dashed border-slate-300">
<td className="px-2 py-2">
<div className='w-full min-w-48 flex items-center gap-2 whitespace-nowrap'>
<img className="w-10 h-10 rounded-md" src={Avatar} alt="Jese image" />