fix: fixed user creation and channel creation

This commit is contained in:
Lukian 2025-03-24 20:38:54 +01:00
parent 42eb432b58
commit 5d13a51f8e
3 changed files with 19 additions and 1 deletions

View file

@ -36,6 +36,7 @@ export default function Home() {
localStorage.removeItem("token")
window.location.reload()
}}>Logout</button>
<Link to="/create-channel">Create Channel</Link>
</div>
) : (
<div>
@ -43,7 +44,6 @@ export default function Home() {
<Link to="/register">Register</Link>
</div>
)}
<Link to="/create-channel">Create Channel</Link>
<h2>Channels</h2>
<ul>
{channels?.map((channel) => (