Browse Source

Bugfix FlipTicker to use spread instead of split

https://stackoverflow.com/a/34717402
master
Gaëtan Renaudeau 7 years ago
parent
commit
c045228089
  1. 2
      src/components/base/FlipTicker/index.js

2
src/components/base/FlipTicker/index.js

@ -51,7 +51,7 @@ class FlipTicker extends PureComponent<Props, State> {
const { height } = this.state
return (
<Container innerRef={n => (this._node = n)} {...p}>
{value.split('').map((l, i) => (
{[...value].map((l, i) => (
<Box key={i}>
{!/[0-9]/.test(l) ? (
l === ' ' ? (

Loading…
Cancel
Save