Sonar report marking lines as not tested even though the utilities used there are fully tested

Hello I have been setting up sonar to a couple of react typescript projects and noticed that some lines are marked as not tested inside react functional components even thought the functions used in those lines are fully tested. I believe the reason might be the assignment of the outcome of the function to a variable but maybe it has to do with something else. Hope someone can give me some insight.

I have attached a screenshot. In the example bellow the function itself is fully covered.

Hey there.

SonarCloud relies entirely on the coverage reports being imported to tell SonarCloud what has been covered and what hasn’t.

So to start – look at the coverage reports that are produced and fed to SonarCloud – do they show this line as fully covered?