generated from lucien/api-template
fix: fixed user creation and channel creation
This commit is contained in:
parent
42eb432b58
commit
5d13a51f8e
3 changed files with 19 additions and 1 deletions
|
@ -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) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue