mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
code refactor
This commit is contained in:
+3
-3
@@ -624,7 +624,7 @@ function getAllCurrencies(translateFn) {
|
|||||||
|
|
||||||
for (let currencyCode in allCurrencyCodes) {
|
for (let currencyCode in allCurrencyCodes) {
|
||||||
if (!Object.prototype.hasOwnProperty.call(allCurrencyCodes, currencyCode)) {
|
if (!Object.prototype.hasOwnProperty.call(allCurrencyCodes, currencyCode)) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
allCurrencies.push({
|
allCurrencies.push({
|
||||||
@@ -828,7 +828,7 @@ function getAllStatisticsChartDataTypes(translateFn) {
|
|||||||
|
|
||||||
for (const dataTypeField in statistics.allChartDataTypes) {
|
for (const dataTypeField in statistics.allChartDataTypes) {
|
||||||
if (!Object.prototype.hasOwnProperty.call(statistics.allChartDataTypes, dataTypeField)) {
|
if (!Object.prototype.hasOwnProperty.call(statistics.allChartDataTypes, dataTypeField)) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const chartDataType = statistics.allChartDataTypes[dataTypeField];
|
const chartDataType = statistics.allChartDataTypes[dataTypeField];
|
||||||
@@ -847,7 +847,7 @@ function getAllStatisticsSortingTypes(translateFn) {
|
|||||||
|
|
||||||
for (const sortingTypeField in statistics.allSortingTypes) {
|
for (const sortingTypeField in statistics.allSortingTypes) {
|
||||||
if (!Object.prototype.hasOwnProperty.call(statistics.allSortingTypes, sortingTypeField)) {
|
if (!Object.prototype.hasOwnProperty.call(statistics.allSortingTypes, sortingTypeField)) {
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sortingType = statistics.allSortingTypes[sortingTypeField];
|
const sortingType = statistics.allSortingTypes[sortingTypeField];
|
||||||
|
|||||||
Reference in New Issue
Block a user