Fix invalid reference to formatMonth in ViewBest
This commit is contained in:
parent
c51bfbd852
commit
730a736585
|
@ -103,7 +103,9 @@ export default function ViewBest() {
|
||||||
yData={weights.map(set => set.weight)}
|
yData={weights.map(set => set.weight)}
|
||||||
yFormat={value => `${value}${weights[0].unit}`}
|
yFormat={value => `${value}${weights[0].unit}`}
|
||||||
xData={weights}
|
xData={weights}
|
||||||
xFormat={(_value, index) => formatMonth(weights[index].created!)}
|
xFormat={(_value, index) =>
|
||||||
|
format(new Date(weights[index].created), 'D/M')
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
Loading…
Reference in New Issue