I am trying to access the collection names posts to check if the current user has already liked or not . If liked then showing liked button in different color. The issue is the function is called two times.I am trying to access the collection names post