Skip to content

Commit

Permalink
fix: added key prop
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhkunwar11 committed Jan 5, 2022
1 parent d56b4f0 commit 29f7de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/layout/achievement/AchievementList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const AchievementList = ({achievements}) => {
{
achievements.map(each => {
return(
<div className={`flex flex-col p-4 bg-${getBg(each?.type)?.bg} rounded border`}>
<div className={`flex flex-col p-4 bg-${getBg(each?.type)?.bg} rounded border`} key={each.id}>
<div className="flex align-center pb-2.5">
<div className={`bg-${getBg(each?.type)?.trophy} w-12 h-12 relative rounded border`}>
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg" className="absolute left-2 bottom-2.5">
Expand Down

0 comments on commit 29f7de0

Please sign in to comment.