generated from lucien/api-template
fix: removed the zero on channel page for non admin users
This commit is contained in:
parent
172c5dfeed
commit
29f6276534
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ export default function ChannelPage({socket}: {socket: WebSocket}) {
|
|||
{channel.name.toLowerCase().includes("cat") && (
|
||||
<img src="/cat.jpg" alt="cat" className="cat" />
|
||||
)}
|
||||
{user?.admin && (
|
||||
{user?.admin == 1 && (
|
||||
<button onClick={purgeChannel}>
|
||||
Purge Channel
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue