Skip to content

Commit 764b96e

Browse files
committed
Amending the changes with removing consoles and div(s)
1 parent ad570f1 commit 764b96e

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

src/components/StoryPageTimeline.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ const StoryPageTimeline = (props) => {
9494
onClick={() => {
9595
if (userId && !voteClicked) {
9696
updateVote(story)
97-
console.log('even after being logged')
9897
} else if (!userId) {
99-
console.log('Not loged In')
10098
setShowLog(!showLog)
10199
}
102100
}}
@@ -115,16 +113,12 @@ const StoryPageTimeline = (props) => {
115113
<Modal
116114
content={
117115
<>
118-
<div>
119-
<h1>Oops! You're not signed In</h1>
120-
<div>
121-
<h2>
122-
<Link className='btn' data-cy='btn-signin' to='/login'>
123-
Sign-In to UpVote :)
124-
</Link>
125-
</h2>
126-
</div>
127-
</div>
116+
<h1>Oops! You're not signed In</h1>
117+
<h2>
118+
<Link className='btn' data-cy='btn-signin' to='/login'>
119+
Sign-In to UpVote :)
120+
</Link>
121+
</h2>
128122
</>
129123
}
130124
handleClose={() => {

src/components/Vote.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ const Vote = (props) => {
7777
onClick={() => {
7878
if (userId && !voteClicked) {
7979
updateVote(story)
80-
} else if (!userId) {
81-
console.log('Not loged In')
8280
}
8381
}}
8482
>

0 commit comments

Comments
 (0)