Skip to content

Commit

Permalink
style: updates merged PR formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
towfiqi committed Nov 8, 2024
1 parent 3786438 commit 34dce13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/insight/InsightStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
2 changes: 1 addition & 1 deletion components/keywords/Keyword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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] };
}
Expand Down

0 comments on commit 34dce13

Please sign in to comment.