Skip to content

Fix: start event listener invalid causing console error

What does this MR do and why?

Reason

The template _stars.html.haml uses an if-else branch to control the rendering. For users that logged in it would not be an issue at all, but for users visiting public repos without logging in, the console will report an error about calling a method from null object.

/cc @prajnamas @orozot @qk44077907

CleanShot_2022-09-19_at_09.57.55_2x

Describe in detail what your merge request does and why.

Screenshots or screen recordings

Before After
CleanShot_2022-09-19_at_09.44.04_2x CleanShot_2022-09-19_at_09.45.04_2x

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading