Skip to content
Snippets Groups Projects
Commit 0461c7e0 authored by insert's avatar insert
Browse files

Fix: Remove unneeded argument.

parent d0b9cf90
No related merge requests found
...@@ -24,7 +24,7 @@ export function ChannelInfo({ channel_id, onClose }: Props) { ...@@ -24,7 +24,7 @@ export function ChannelInfo({ channel_id, onClose }: Props) {
<Modal visible={true} onClose={onClose}> <Modal visible={true} onClose={onClose}>
<div className={styles.info}> <div className={styles.info}>
<div className={styles.header}> <div className={styles.header}>
<h1>{ getChannelName(ctx.client, channel, [ ], true) }</h1> <h1>{ getChannelName(ctx.client, channel, true) }</h1>
<div onClick={onClose}> <div onClick={onClose}>
<X size={36} /> <X size={36} />
</div> </div>
......
...@@ -41,7 +41,7 @@ export function Invites({ server }: Props) { ...@@ -41,7 +41,7 @@ export function Invites({ server }: Props) {
<span> <span>
<UserIcon target={creator} size={24} /> {creator?.username ?? 'unknown'} <UserIcon target={creator} size={24} /> {creator?.username ?? 'unknown'}
</span> </span>
<span>{ (channel && creator) ? getChannelName(ctx.client, channel, [ creator ], true) : '#unknown' }</span> <span>{ (channel && creator) ? getChannelName(ctx.client, channel, true) : '#unknown' }</span>
<IconButton <IconButton
onClick={async () => { onClick={async () => {
setDelete([ setDelete([
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment