Hi there,
Here is a code and I am getting a small error under first to Patch function; One after first patch function and other on closing If statement in second Patch function. Attached a pic below for understanding. can someone point out what could be causing it

Also pasting code, just incase:
If(
SharePointIntegration.Selected.'Created By'.Email = User().Email,
Notify("You can't like your own post!", NotificationType.Error),
IsBlank(LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID))),
(
Patch(
LikeResponses,
Defaults(LikeResponses),
{
UserID: User().Email,
Title: Text(SharePointIntegration.Selected.ID),
LikeStatus: 1
}
);
If(
IsBlank(LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID))),
Patch(LikesCount, Defaults(LikesCount), { Title: Text(SharePointIntegration.Selected.ID), TotalLikes: 1 }),
Patch(
LikesCount,
LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID)),
{ TotalLikes: Value(LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID)).TotalLikes) + 1 }
)
)
),
!IsBlank(LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID), LikeStatus)) && LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID)).LikeStatus = 1,
(
Patch(
LikeResponses,
LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID)),
{ LikeStatus: 0 }
);
Patch(
LikesCount,
LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID)),
{ TotalLikes: Value(LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID)).TotalLikes) - 1 }
)
),
!IsBlank(LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID), LikeStatus)) && LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID)).LikeStatus = 0,
(
Patch(
LikeResponses,
LookUp(LikeResponses, UserID = User().Email && Title = Text(SharePointIntegration.Selected.ID)),
{ LikeStatus: 1 }
);
Patch(
LikesCount,
LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID)),
{ TotalLikes: Value(LookUp(LikesCount, Title = Text(SharePointIntegration.Selected.ID)).TotalLikes) + 1 }
)
)
)