Commit 4a696fb9 authored by Efe's avatar Efe Committed by Jonathan Porta
Browse files

change method name

parent 44adb499
...@@ -93,7 +93,7 @@ class SteemProposalSystem extends React.Component { ...@@ -93,7 +93,7 @@ class SteemProposalSystem extends React.Component {
} }
} }
constructPermlink(creator, permlink) { getSpsUrl(creator, permlink) {
const { social_url } = global.$STM_Config; const { social_url } = global.$STM_Config;
return `${social_url || ''}/@${creator}/${permlink}`; return `${social_url || ''}/@${creator}/${permlink}`;
} }
...@@ -221,10 +221,7 @@ class SteemProposalSystem extends React.Component { ...@@ -221,10 +221,7 @@ class SteemProposalSystem extends React.Component {
return [ return [
<a <a
href={this.constructPermlink( href={this.getSpsUrl(proposal.get('creator'), value)}
proposal.get('creator'),
value
)}
target="__blank" target="__blank"
key={`proposal-extlink-${value}`} key={`proposal-extlink-${value}`}
title="Perm link" title="Perm link"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment