Skip to content

Commit

Permalink
fix(shortcut): Fix timer not starting when there's no project
Browse files Browse the repository at this point in the history
  • Loading branch information
Alissonsz committed Jul 6, 2023
1 parent 7c19592 commit 3eebe96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/shortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ togglbutton.render('.story-state:not(.toggl)', { observe: true }, function (
};

const getProject = function () {
return $('.story-project .value', elem).textContent;
return $('.story-project .value', elem)?.textContent;
};

const link = togglbutton.createTimerLink({
Expand Down

0 comments on commit 3eebe96

Please sign in to comment.