Removed async on icon validate function

This commit is contained in:
DrMint 2024-05-14 15:21:59 +02:00
parent 3b05c1543a
commit 30bf03c8aa
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ export const iconField = (props: Props): TextField => ({
description:
"Select an icon from here: https://icones.js.org/collection/material-symbols. Only outline and regular variants are usable on the website.",
},
validate: async (value) => {
validate: (value) => {
if (isEmpty(value)) return true;
if (!validNames.includes(value)) {
return `The icon "${value}" doesn't exist in material-symbols`;