next-firebase-course icon indicating copy to clipboard operation
next-firebase-course copied to clipboard

Logging out while on a Post page causes an error in HeartButton component

Open justisCrocker opened this issue 2 years ago • 0 comments

The following error occurs when clicking Log Out on a post page ([username]/[slug]). image It seems that the AuthCheck fails and the HeartButton component is mounted. This shouldn't happen since the HeartButton code requires a logged in user. How can we ensure the AuthCheck works correctly to prevent this?

justisCrocker avatar Oct 06 '22 00:10 justisCrocker