File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ export const updateSecond = (value: number) => (state: State) => {
145145 nextState = {
146146 ...nextState ,
147147 second : {
148- ...state . second ,
148+ ...nextState . second ,
149149 min : secondMin ,
150150 max : secondMax ,
151151 } ,
@@ -211,7 +211,7 @@ export const updateMinute = (value: number) => (state: State) => {
211211 nextState = {
212212 ...nextState ,
213213 minute : {
214- ...state . minute ,
214+ ...nextState . minute ,
215215 min : minuteMin ,
216216 max : minuteMax ,
217217 } ,
@@ -275,7 +275,7 @@ export const updateHour = (value: number) => (state: State) => {
275275 nextState = {
276276 ...nextState ,
277277 hour : {
278- ...state . hour ,
278+ ...nextState . hour ,
279279 min : hourMin ,
280280 max : hourMax ,
281281 } ,
@@ -337,7 +337,7 @@ export const updateDay = (value: number) => (state: State) => {
337337 nextState = {
338338 ...nextState ,
339339 day : {
340- ...state . day ,
340+ ...nextState . day ,
341341 min : dayMin ,
342342 max : dayMax ,
343343 } ,
@@ -391,7 +391,7 @@ export const updateMonth = (value: number) => (state: State) => {
391391 nextState = {
392392 ...nextState ,
393393 month : {
394- ...state . month ,
394+ ...nextState . month ,
395395 min : monthMin ,
396396 max : monthMax ,
397397 } ,
@@ -454,7 +454,7 @@ export const updateYear = (value: number) => (state: State) => {
454454 nextState = {
455455 ...nextState ,
456456 year : {
457- ...state . year ,
457+ ...nextState . year ,
458458 min : yearMin ,
459459 max : yearMax ,
460460 } ,
You can’t perform that action at this time.
0 commit comments