| 5234 | toastr.warning(t`Character name is required`); | 5234 | toastr.warning(t`Character name is required`); |
| 5235 | return ''; | 5235 | return ''; |
| 5236 | } | 5236 | } |
| 5237 | if (!description || typeof description !== 'string') { | | |
| 5238 | toastr.warning(t`Character description is required`); | | |
| 5239 | return ''; | | |
| 5240 | } | | |
| 5241 | if (!firstMessage || typeof firstMessage !== 'string') { | | |
| 5242 | toastr.warning(t`Character first message is required`); | | |
| 5243 | return ''; | | |
| 5244 | } | | |
| 5245 | | 5237 | |
| 5246 | // Build the character data object matching the server's expected format | 5238 | // Build the character data object matching the server's expected format |
| 5247 | const characterData = { | 5239 | const characterData = { |