Commit 5165ec5e authored by janickess's avatar janickess
Browse files

Fixed warning

parent b4049f15
......@@ -37,13 +37,15 @@ function commitView() {
<div className="commits">
<h3>Commits</h3>
{commits
? commits.map((commit: { message: string; created_at: number }) => (
<Commit
key="{commit.id}"
title={commit.message}
date={commit.created_at}
/>
))
? commits.map(
(commit: { message: string; created_at: number }, index) => (
<Commit
key={index}
title={commit.message}
date={commit.created_at}
/>
)
)
: "Ingen"}
</div>
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment