We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5af251 commit ad3701bCopy full SHA for ad3701b
src/pages/StatGraph.tsx
@@ -12,7 +12,7 @@ const StatGraph: FC = () => {
12
const keys = Object.keys(storedStat)
13
const data = keys.map((k, i) => {
14
return {
15
- name: k.length > 5 ? k.slice(0, 4) + '...' : k,
+ name: k.split(' ').length > 1 ? k.split(' ')[k.split(' ').length - 1] : k,
16
value: Math.floor(storedStat[k].value * 10) / 10,
17
}
18
})
0 commit comments