Fix boolean expression to determine start timestamp (#20)

This commit is contained in:
Haryz Izzudin 2017-12-24 21:44:20 +08:00 committed by Crawl
parent fbc714082e
commit 40222597c9

View file

@ -174,7 +174,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void {
activity = {
details: generateDetails('detailsDebugging', 'detailsEditing', 'detailsIdle'),
state: generateDetails('lowerDetailsDebugging', 'lowerDetailsEditing', 'lowerDetailsIdle'),
startTimestamp: !previousTimestamp && !workspaceElapsedTime ? new Date().getTime() / 1000 : previousTimestamp,
startTimestamp: previousTimestamp && workspaceElapsedTime ? previousTimestamp : new Date().getTime() / 1000,
largeImageKey: largeImageKey
? largeImageKey.image
|| largeImageKey