PromptSendFriendRequest stops working after your request gets declined once

Hello! I’ve been working on a custom leaderboard/chat combo for the past 2 weeks or so.

I’m trying to implement the ability to friend someone directly from my own leaderboard instead of having to use the esc menu to send friend requests but there seems to be a problem, whenever your request gets declined it gets stuck as “pending” forever and you cannot send a new request ever until either you rejoin or the person you’re trying to friend rejoins.

Is there a way to prompt an user to cancel their request or bring up a pending request again so they could accept/decline it?