fix typo
This commit is contained in:
@@ -120,8 +120,10 @@ export default function SubdomainEditor() {
|
||||
`\n\n\n\n`
|
||||
)
|
||||
)
|
||||
} catch (error: any) {
|
||||
toast.error(error.mesage, { id: toastId })
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
toast.error(error.message, { id: toastId })
|
||||
}
|
||||
}
|
||||
},
|
||||
[uploadFile]
|
||||
|
||||
Reference in New Issue
Block a user