Use string interpolation
This commit is contained in:
@ -3,5 +3,5 @@ import config from '../../../config';
|
||||
export default (tag: string) => ({
|
||||
type: 'Hashtag',
|
||||
href: `${config.url}/tags/${encodeURIComponent(tag)}`,
|
||||
name: '#' + tag
|
||||
name: `#${tag}`
|
||||
});
|
||||
|
Reference in New Issue
Block a user