diff --git a/src/renderer/component/viewOnWebButton/view.jsx b/src/renderer/component/viewOnWebButton/view.jsx index faf29b0a2..aa1dae86b 100644 --- a/src/renderer/component/viewOnWebButton/view.jsx +++ b/src/renderer/component/viewOnWebButton/view.jsx @@ -4,18 +4,22 @@ import * as icons from 'constants/icons'; import Button from 'component/button'; type Props = { - uri: ?string, + claimId: ?string, + claimName: ?string, }; export default (props: Props) => { - const { uri } = props; + const { claimId, claimName } = props; + const speechURL = claimName.startsWith('@') + ? `${claimName}:${claimId}` + : `${claimId}/${claimName}`; - return uri ? ( + return claimId && claimName ? (