mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 18:02:13 +00:00
check the length of href to deside wich element to render
This commit is contained in:
parent
d92a2b7d05
commit
4e85b21b73
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ const Button = React.forwardRef(({ children, ...props }, ref) => {
|
|||
}
|
||||
}, [props.onMouseDown]);
|
||||
return React.createElement(
|
||||
typeof props.href === 'string' ? 'a' : 'div',
|
||||
typeof props.href === 'string' && props.href.length > 0 ? 'a' : 'div',
|
||||
{
|
||||
...props,
|
||||
ref,
|
||||
|
|
|
|||
Loading…
Reference in a new issue