diff --git a/model/log.go b/model/log.go
index 988a2d59..83c9a647 100644
--- a/model/log.go
+++ b/model/log.go
@@ -263,8 +263,8 @@ func GetChannelExpensesByPeriod(startTimestamp, endTimestamp int64) (LogStatisti
JOIN channels ON logs.channel_id = channels.id
WHERE logs.type=2
AND logs.created_at BETWEEN ? AND ?
- GROUP BY date, channels.name
- ORDER BY date, channels.name
+ GROUP BY date, channels.id
+ ORDER BY date, channels.id
`, startTimestamp, endTimestamp).Scan(&LogStatistics).Error
return LogStatistics, err
diff --git a/web/src/views/Channel/component/TableRow.js b/web/src/views/Channel/component/TableRow.js
index 7e502b5b..3939a71e 100644
--- a/web/src/views/Channel/component/TableRow.js
+++ b/web/src/views/Channel/component/TableRow.js
@@ -37,7 +37,7 @@ import { IconDotsVertical, IconEdit, IconTrash, IconCopy, IconWorldWww } from '@
import { styled, alpha } from '@mui/material/styles';
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
-import { copy } from 'utils/common';
+import { copy, renderQuota } from 'utils/common';
const StyledMenu = styled((props) => (