Skip to content

Commit

Permalink
chore: change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ubavic committed Oct 21, 2022
1 parent 58fc116 commit 4f560e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const useStyles = makeStyles(styles)

const TModal = ({ onClose, selectedCoin, addTestingAddress, errorMsg }) => {
const classes = useStyles()
const handleAddToBlacklist = address => {
const handleAddToTesting = address => {
if (selectedCoin.code === 'BCH' && !address.startsWith('bitcoincash:')) {
address = 'bitcoincash:' + address
}
Expand All @@ -43,7 +43,7 @@ const TModal = ({ onClose, selectedCoin, addTestingAddress, errorMsg }) => {
.required('An address is required')
})}
onSubmit={({ address }) => {
handleAddToBlacklist(address.trim())
handleAddToTesting(address.trim())
}}>
<Form id="address-form">
<H3 className={classes.modalTitle}>
Expand Down

0 comments on commit 4f560e8

Please sign in to comment.