Skip to content

Commit 6ac4480

Browse files
Fixes linting errors
1 parent 0c5f878 commit 6ac4480

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/keyframes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default class Keyframes extends React.Component {
7676
const frameNum = this.state.frameNum + 1;
7777
const loopNum = this.state.loopNum + 1;
7878
if (this.props.children.length <= frameNum) {
79-
if (this.props.loop === true || this.props.loop == 'infinite' || loopNum < this.props.loop) {
79+
if (this.props.loop === true || this.props.loop === 'infinite' || loopNum < this.props.loop) {
8080
this.setState({
8181
frameNum: 0,
8282
loopNum

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test('Infinite loop', (t) => {
9494
const onStart = () => onStart.called = true;
9595
const onEnd = () => onEnd.called = true;
9696
render(
97-
<Keyframes onStart={onStart} onEnd={onEnd} loop={true}>
97+
<Keyframes onStart={onStart} onEnd={onEnd} loop>
9898
<Frame duration={100}>foo</Frame>
9999
<Frame duration={100}>bar</Frame>
100100
</Keyframes>,

0 commit comments

Comments
 (0)