hotfix: wrong attribute on checking bg

This commit is contained in:
Eunwoo Choi 2025-03-18 22:21:45 +09:00 committed by GitHub
parent b90fa8f11e
commit f68da03eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "koreanbots",
"version": "2.8.8",
"version": "2.9.2",
"private": true,
"scripts": {
"dev": "next dev",

View File

@ -37,7 +37,7 @@ const Modal = dynamic(() => import('@components/Modal'))
const NSFW = dynamic(() => import('@components/NSFW'))
const Bots: NextPage<BotsProps> = ({ data, desc, date, user, theme, csrfToken }) => {
const bg = checkBotFlag(data?.flags, 'trusted') && data?.banner
const bg = checkBotFlag(data?.flags, 'trusted') && data?.bg
const router = useRouter()
const [nsfw, setNSFW] = useState<boolean>()
const [reportModal, setReportModal] = useState(false)