Fix boolean expression to determine start timestamp (#20)
This commit is contained in:
parent
fbc714082e
commit
40222597c9
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void {
|
||||||
activity = {
|
activity = {
|
||||||
details: generateDetails('detailsDebugging', 'detailsEditing', 'detailsIdle'),
|
details: generateDetails('detailsDebugging', 'detailsEditing', 'detailsIdle'),
|
||||||
state: generateDetails('lowerDetailsDebugging', 'lowerDetailsEditing', 'lowerDetailsIdle'),
|
state: generateDetails('lowerDetailsDebugging', 'lowerDetailsEditing', 'lowerDetailsIdle'),
|
||||||
startTimestamp: !previousTimestamp && !workspaceElapsedTime ? new Date().getTime() / 1000 : previousTimestamp,
|
startTimestamp: previousTimestamp && workspaceElapsedTime ? previousTimestamp : new Date().getTime() / 1000,
|
||||||
largeImageKey: largeImageKey
|
largeImageKey: largeImageKey
|
||||||
? largeImageKey.image
|
? largeImageKey.image
|
||||||
|| largeImageKey
|
|| largeImageKey
|
||||||
|
|
Loading…
Reference in a new issue