fix rank creation error
This commit is contained in:
@@ -742,7 +742,9 @@ export default function Acp({ isAdmin }) {
|
||||
}, [isAdmin])
|
||||
|
||||
const handleCreateRank = async (event) => {
|
||||
if (event?.preventDefault) {
|
||||
event.preventDefault()
|
||||
}
|
||||
if (!rankFormName.trim()) return
|
||||
if (rankFormType === 'image' && !rankFormImage) {
|
||||
setRanksError(t('rank.badge_image_required'))
|
||||
|
||||
Reference in New Issue
Block a user