mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
fix: do not show message when none is set
This commit is contained in:
parent
d1703b669d
commit
8ab66a3285
@ -116,13 +116,15 @@ const Bots: NextPage<BotsProps> = ({ data, desc, date, user, theme, csrfToken })
|
|||||||
로 문의해주세요.
|
로 문의해주세요.
|
||||||
</p>
|
</p>
|
||||||
</Message>
|
</Message>
|
||||||
) : data.enforcements.length > 0 ? (
|
) : data.enforcements.filter((i) => i !== 'NONE').length > 0 ? (
|
||||||
<Message type='warning'>
|
<Message type='warning'>
|
||||||
<h2 className='text-lg font-extrabold'>이 봇은 기능에 제한을 두고 있습니다.</h2>
|
<h2 className='text-lg font-extrabold'>이 봇은 기능에 제한을 두고 있습니다.</h2>
|
||||||
<p>
|
<p>
|
||||||
{data.enforcements.map((i) => (
|
{data.enforcements
|
||||||
<li key={i}>{botEnforcements[i].description}</li>
|
.filter((i) => i !== 'NONE')
|
||||||
))}
|
.map((i) => (
|
||||||
|
<li key={i}>{botEnforcements[i].description}</li>
|
||||||
|
))}
|
||||||
</p>
|
</p>
|
||||||
</Message>
|
</Message>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user