fixed new function

2 jobs for frontend-code-smell in 17 minutes and 2 seconds (queued for 3 seconds)