mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-31 22:14:09 +00:00
Use empty string for falsy character strings
This commit is contained in:
parent
aa04a39c00
commit
195a92c2bd
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|||
import Character from "./Character";
|
||||
|
||||
const CharacterString = props => {
|
||||
const text = `${props.children}`;
|
||||
const text = `${props.children}` || "";
|
||||
const chars = text.split("");
|
||||
return (
|
||||
<div {...props}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue