mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-04 22:13:21 +00:00
fix(frontend): Avoid using the index of an array as key property in an element
This commit is contained in:
@@ -987,7 +987,7 @@ const TfaTab = () => {
|
||||
<div className="grid grid-cols-2 gap-2 font-mono text-sm">
|
||||
{backupCodes.map((code, index) => (
|
||||
<div
|
||||
key={index}
|
||||
key={code}
|
||||
className="flex items-center justify-between py-1"
|
||||
>
|
||||
<span className="text-secondary-600 dark:text-secondary-400">
|
||||
|
||||
Reference in New Issue
Block a user