mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
style: updates merged PR formatting
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
@@ -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] };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user