about summary refs log tree commit diff
path: root/components/Ranking
diff options
context:
space:
mode:
Diffstat (limited to 'components/Ranking')
-rw-r--r--components/Ranking/RankingList.stories.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/Ranking/RankingList.stories.js b/components/Ranking/RankingList.stories.js
index c7b287d..830dd6a 100644
--- a/components/Ranking/RankingList.stories.js
+++ b/components/Ranking/RankingList.stories.js
@@ -6,7 +6,10 @@ import RankingList from './RankingList'
 import { rankingEntry } from './RankingEntry.stories'
 
 const rankingList = {
-  scores: Array(3).fill(rankingEntry)
+  scores: Array.from(Array(3).keys()).map(i => ({
+    ...rankingEntry,
+    troop: `Troop${i}`
+  }))
 }
 
 storiesOf('Ranking/RankingList', module)
@@ -15,6 +18,9 @@ storiesOf('Ranking/RankingList', module)
     return {
       components: { RankingList },
       template: `<ranking-list :scores="scores" />`,
-      data: () => rankingList
+      data: () => {
+        console.log(rankingList)
+        return rankingList
+      }
     }
   })