Skip to content

Commit

Permalink
Amending the changes with removing consoles and div(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinishant committed Mar 12, 2022
1 parent ad570f1 commit 764b96e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 6 additions & 12 deletions src/components/StoryPageTimeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ const StoryPageTimeline = (props) => {
onClick={() => {
if (userId && !voteClicked) {
updateVote(story)
console.log('even after being logged')
} else if (!userId) {
console.log('Not loged In')
setShowLog(!showLog)
}
}}
Expand All @@ -115,16 +113,12 @@ const StoryPageTimeline = (props) => {
<Modal
content={
<>
<div>
<h1>Oops! You're not signed In</h1>
<div>
<h2>
<Link className='btn' data-cy='btn-signin' to='/login'>
Sign-In to UpVote :)
</Link>
</h2>
</div>
</div>
<h1>Oops! You're not signed In</h1>
<h2>
<Link className='btn' data-cy='btn-signin' to='/login'>
Sign-In to UpVote :)
</Link>
</h2>
</>
}
handleClose={() => {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Vote.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ const Vote = (props) => {
onClick={() => {
if (userId && !voteClicked) {
updateVote(story)
} else if (!userId) {
console.log('Not loged In')
}
}}
>
Expand Down

0 comments on commit 764b96e

Please sign in to comment.