Fix bug where /lol-account-verification failed to open

This commit is contained in:
BlossomiShymae
2024-08-14 03:46:11 -05:00
parent e0a2685dcf
commit 14dde760b0
2 changed files with 3 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ namespace Needlework.Net.Desktop.ViewModels
if (requestBody.Content.TryGetValue("application/json", out var media))
{
var schema = media.Schema;
if (schema == null) return null; // Because "PostLolAccountVerificationV1SendDeactivationPin" exists where the media body is empty...
return GetSchemaType(schema);
}
return null;