feat: made alerts and logs keys more unique

This commit is contained in:
RadoslavDimchev 2023-10-20 09:38:20 +03:00
parent 57ac9c6551
commit 69e38aceec
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ const AlertsList = () => {
</XStack>
{alerts.map(alert => (
<InformationBox
key={alert.message}
key={alert.message + alert.variant}
message={alert.message}
icon={<CloseCircleIcon size={20} />}
variant={alert.variant}

View File

@ -38,7 +38,7 @@ const LogsList = () => {
</XStack>
{logs.map(log => (
<InformationBox
key={log.message}
key={log.message + log.variant}
message={log.message}
icon={<CloseCircleIcon size={20} />}
variant={log.variant}