Skip to content

Commit

Permalink
fix: remove yesterday streak sum
Browse files Browse the repository at this point in the history
  • Loading branch information
KeziahMoselle committed Mar 15, 2019
1 parent a5fd636 commit 6a5ef14
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,8 @@ ipcMain.on('handshake', () => {
// Get streak if it exists
if (storeData[currentDayIndex]) {
todayStreak = storeData[currentDayIndex].streak
}

// Add yesterday streak if it exists
if (storeData[currentDayIndex - 1]) {
todayStreak += storeData[currentDayIndex - 1].streak
}


trayWindow.webContents.send('handshake', {
work: config.get('work'),
pause: config.get('pause'),
Expand Down

0 comments on commit 6a5ef14

Please sign in to comment.