Skip to content

Commit

Permalink
Slight error handling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
S3Prototype committed May 14, 2021
1 parent 6ef99d5 commit 42c440c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Robots/RobotButtonSet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const VoteButtonSet = (props, data)=>{

return(
<Button
disabled={props.alreadyVotedList.includes(props.robot._id)}
disabled={props.alreadyVotedList && props.alreadyVotedList.includes(props.robot._id)}
disableElevation
style={basicButtonStyles}
variant="contained" color="primary"
Expand Down

1 comment on commit 42c440c

@vercel
Copy link

@vercel vercel bot commented on 42c440c May 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

famous-robots – ./

famous-robots.vercel.app
famous-robots-s3prototype.vercel.app
famous-robots-git-main-s3prototype.vercel.app

Please sign in to comment.