Skip to content

Commit 6e26efc

Browse files
authored
Update History.tsx
Removed redundant logic
1 parent 2fbe706 commit 6e26efc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/app/components/StateRoute/History.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ function History(props: Record<string, unknown>): JSX.Element {
191191
.style('top', `${event.clientY - 10}px`)
192192
.style('max-height', `25%`)
193193
.style('overflow', `scroll`);
194-
console.log(findDiff(d.data.index));
195194
d3.selectAll('.tooltip').html(findDiff(d.data.index));
196195
}
197196

@@ -201,8 +200,6 @@ function History(props: Record<string, unknown>): JSX.Element {
201200
if (d3.selectAll(`#tt-${d.data.index}`)._groups['0'].length === 0) {
202201
d3.selectAll('.tooltip').remove();
203202
renderToolTip();
204-
} else {
205-
d3.selectAll('.tooltip').remove();
206203
}
207204
}
208205
})

0 commit comments

Comments
 (0)