shubh28 / safeslot

2 stars 2 forks source link

[BUG] Decreasing count of next-assign-token #102

Closed aknakshay closed 4 years ago

aknakshay commented 4 years ago

When we click next to increase the current token, (when next assign token and current token numbers are around), there's a case when next-assign-token is reduced by 1. The issue is not always reproducible. I have been able to reproduce it 4 times but could only gather the above info.

@shubh28 @omkarrane @APTricou Do review the entire token functionality code and optimise it so this issue doesn't come.

aknakshay commented 4 years ago

It was because next and previous button were pushing data with the current state.

  1. Current state has some data
  2. New token is generated
  3. Next or Previous button is pressed which changes variable current token but keeps others as same (the older state before the new token was generated)