Skip to content

Commit

Permalink
fix the bug that cannot set the date range automatically when navigat…
Browse files Browse the repository at this point in the history
…e to transaction list page by clicking category in statistics page in mobile version
  • Loading branch information
mayswind committed Jun 8, 2024
1 parent e88d803 commit 4dd79b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ export const useStatisticsStore = defineStore('statistics', {
&& this.transactionStatisticsFilter.chartDataType !== statisticsConstants.allChartDataTypes.AccountTotalLiabilities.type) {
querys.push('dateType=' + this.transactionStatisticsFilter.categoricalChartDateType);

if (this.transactionStatisticsFilter.dateType === datetimeConstants.allDateRanges.Custom.type) {
if (this.transactionStatisticsFilter.categoricalChartDateType === datetimeConstants.allDateRanges.Custom.type) {
querys.push('minTime=' + this.transactionStatisticsFilter.categoricalChartStartTime);
querys.push('maxTime=' + this.transactionStatisticsFilter.categoricalChartEndTime);
}
Expand Down

0 comments on commit 4dd79b0

Please sign in to comment.