Skip to content
Snippets Groups Projects
Commit 7f170d06 authored by emelko's avatar emelko
Browse files

Make sure stats output some result after one completed cycle

parent 4605f5b8
No related branches found
No related tags found
Loading
...@@ -13,7 +13,7 @@ import AppText from './app-text' ...@@ -13,7 +13,7 @@ import AppText from './app-text'
export default class Stats extends Component { export default class Stats extends Component {
render() { render() {
const cycleLengths = cycleModule().getAllCycleLengths() const cycleLengths = cycleModule().getAllCycleLengths()
const atLeastOneCycle = cycleLengths.length > 1 const atLeastOneCycle = cycleLengths.length >= 1
let numberOfCycles let numberOfCycles
let cycleInfo let cycleInfo
if (atLeastOneCycle) { if (atLeastOneCycle) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment