style: updates merged PR formatting

This commit is contained in:
towfiqi
2024-11-08 12:29:24 +06:00
parent 3786438662
commit 34dce13143
2 changed files with 3 additions and 3 deletions

View File

@@ -21,10 +21,10 @@ const InsightStats = ({ stats = [], totalKeywords = 0, totalPages = 0 }:InsightS
position: item.position + acc.position,
};
}, { impressions: 0, clicks: 0, position: 0 });
return {
...totals,
ctr: totals.impressions > 0 ? (totals.clicks / totals.impressions) * 100 : 0
ctr: totals.impressions > 0 ? (totals.clicks / totals.impressions) * 100 : 0,
};
}, [stats]);

View File

@@ -73,7 +73,7 @@ const Keyword = (props: KeywordProps) => {
let bestPos;
if (Object.keys(history).length > 0) {
const historyArray = Object.keys(history).map((itemID) => ({ date: itemID, position: history[itemID] }))
.sort((a, b) => a.position - b.position).filter((el) => (el.position > 0));;
.sort((a, b) => a.position - b.position).filter((el) => (el.position > 0));
if (historyArray[0]) {
bestPos = { ...historyArray[0] };
}