Skip to content

Commit

Permalink
Merge pull request #747 from turbo124/fixes_for_charts
Browse files Browse the repository at this point in the history
fixes for charts
  • Loading branch information
beganovich authored Jun 14, 2023
2 parents 7ba3264 + 0ac0b8f commit 5cd2ab7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/dashboard/components/Totals.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export function Totals() {
const [body, setBody] = useState<{ start_date: string; end_date: string }>({
start_date: new Date(
new Date().getFullYear(),
new Date().getMonth(),
new Date().getDate() - 7
new Date().getMonth() - 1,
new Date().getDate()
)
.toISOString()
.split('T')[0],
Expand Down Expand Up @@ -111,6 +111,7 @@ export function Totals() {
currencies.push({ value: id, label: name as unknown as string });
});

setCurrency(parseInt(currencies[0].value));
setCurrencies(currencies);
setIsLoadingTotals(false);
}
Expand Down

0 comments on commit 5cd2ab7

Please sign in to comment.