Use empty string for falsy character strings

This commit is contained in:
Jordan Eldredge 2017-08-28 20:58:05 -07:00
parent aa04a39c00
commit 195a92c2bd

View file

@ -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}>