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> </XStack>
{alerts.map(alert => ( {alerts.map(alert => (
<InformationBox <InformationBox
key={alert.message} key={alert.message + alert.variant}
message={alert.message} message={alert.message}
icon={<CloseCircleIcon size={20} />} icon={<CloseCircleIcon size={20} />}
variant={alert.variant} variant={alert.variant}

View File

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