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 ? (
) : null;
};
diff --git a/src/renderer/page/channel/view.jsx b/src/renderer/page/channel/view.jsx
index eb27caab0..9722c78a5 100644
--- a/src/renderer/page/channel/view.jsx
+++ b/src/renderer/page/channel/view.jsx
@@ -85,7 +85,7 @@ class ChannelPage extends React.PureComponent {
{name}
-
+
diff --git a/src/renderer/page/file/view.jsx b/src/renderer/page/file/view.jsx
index c870747f3..ee015599b 100644
--- a/src/renderer/page/file/view.jsx
+++ b/src/renderer/page/file/view.jsx
@@ -183,7 +183,7 @@ class FilePage extends React.Component {
)}
{speechSharable && (
-
+
)}