Skip to content

fix: remove unnecessary optional chaining in the day finished banner - #28

Merged
pitercoding merged 1 commit into
mainfrom
chore/fix-template-warning
Nov 28, 2026
Merged

pitercoding merged 1 commit into
mainfrom
chore/fix-template-warning

Conversation

@pitercoding

Copy link
Copy Markdown
Owner

Summary

  • Removes an unnecessary ?. in the "day finished" banner of the worklog page.

Motivation

  • The Angular language service reported NG8107 because state.workDay cannot be null inside that *ngIf.

Implementation

  • The *ngIf now checks state.workDay && explicitly, so the type is narrowed and state.workDay.finishedAt can be used without ?.. A plain replacement of ?. fails to compile with Angular 20.

Testing

  • Production build passes and the 32 unit tests pass.
  • The warning no longer appears in the editor.

@vercel

vercel Bot commented Nov 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
worklog Ready Ready Preview Nov 28, 2026 1:01pm UTC

@pitercoding
pitercoding merged commit bdf019e into main Nov 28, 2026
5 checks passed
@pitercoding
pitercoding deleted the chore/fix-template-warning branch November 28, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant