From 9f0f22979e8fcf40792c2701136e98f9db1be518 Mon Sep 17 00:00:00 2001 From: Martin Acosta Date: Sat, 8 Apr 2017 17:44:03 -0300 Subject: [PATCH] updated readme --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 248c13b..fc01fec 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,10 @@ function App({ emitter }) { state.minutes = 0; } + if (state.hours === 24) { + state.hours = 0; + } + emitter.emit('render'); }); @@ -189,6 +193,10 @@ function Clock({ emitter, props }) { state.minutes = 0; } + if (state.hours === 24) { + state.hours = 0; + } + emitter.emit('render'); }); @@ -236,7 +244,7 @@ function App() { return h('div', [ component(Clock, { name: 'Clock 1' }), component(Clock, { name: 'Clock 2', time: [5 ,20, 16] }), - component(Clock, { name: 'Clock 3', time: [24, 59, 40] }) + component(Clock, { name: 'Clock 3', time: [23, 59, 40] }) ]); }