Skip to content
Permalink
Browse files

AppBadge: avoid appAddress warning if badgeOnly is set (#589)

  • Loading branch information...
sohkai committed Sep 10, 2019
1 parent 8d3046e commit 5cb8309641502a73d28ad9c387c61f7cc302c87d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/components/AppBadge/AppBadge.js
@@ -28,7 +28,7 @@ const IdentityBadge = React.memo(function IdentityBadge({
const handleOpen = useCallback(() => setOpened(true), [])

const isValidAddress = isAddress(appAddress)
if (!isValidAddress) {
if (!badgeOnly && !isValidAddress) {
warn(`AppBadge: provided invalid app address (${appAddress})`)
}

0 comments on commit 5cb8309

Please sign in to comment.
You can’t perform that action at this time.