project_next_14_ai_prompt_sharing icon indicating copy to clipboard operation
project_next_14_ai_prompt_sharing copied to clipboard

We could check if in a post have more tags with or without hash

Open stephanemalho opened this issue 1 year ago • 1 comments

A user should be able to write a tag with or without #, or write multiple tags without worrying about the final rendering. For this, it would be interesting to add this:

Screenshot 2023-05-23 at 12 53 29

stephanemalho avatar May 23 '23 10:05 stephanemalho

You can just shorten your code length by doing this instead:

{post.tag.includes("#") ? post.tag : `#${post.tag}`}

This way, whether or not a user remembers to include '#', it's not gon be an issue.

collinsedim avatar Jul 05 '23 22:07 collinsedim