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