Skip to content

Commit

Permalink
Merge pull request #748 from invoiceninja/develop
Browse files Browse the repository at this point in the history
Sync main and develop
  • Loading branch information
beganovich authored Jun 14, 2023
2 parents 85a706c + ae8926d commit 724a588
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 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
2 changes: 1 addition & 1 deletion src/resources/lang/de/de.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resources/lang/en/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resources/lang/fr_CA/fr_CA.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/resources/lang/hu/hu.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/resources/lang/km_KH/km_KH.json

Large diffs are not rendered by default.

0 comments on commit 724a588

Please sign in to comment.