Fix front-end code smell.
Merge pull request #245 from Bilge/code-smell

Fix front-end code smell.