Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mostly fixes + docs #18

Merged
merged 13 commits into from
Jun 14, 2022
6 changes: 3 additions & 3 deletions pages/users/[login]/scales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function UserScales() {
} = useAPI<any>(`/v2/users/${login}/scale_teams`); // TODO add scales interface

const { data: history } = useAPI<any>( // TODO add historics interface
`/v2/users/${login}/correction_point_historics`
`/v2/users/${login}/correction_point_historics?sort=-created_at`
);

if (isLoading) return <Loading />;
Expand All @@ -41,7 +41,7 @@ export default function UserScales() {
<>
{history && (
<ResponsiveContainer height={100}>
<LineChart data={history}>
<LineChart data={history.slice().reverse()}>
<ReferenceLine
y={0}
label="0"
Expand All @@ -52,7 +52,7 @@ export default function UserScales() {
<Line
type="monotone"
dataKey="total"
stroke="var(--foreground)"
stroke="var(--theme-ui-colors-primary)"
/>
</LineChart>
</ResponsiveContainer>
Expand Down