Skip to content

Commit

Permalink
Fix form bug
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 1, 2024
1 parent 1efcda3 commit 780ef37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/EditForms/Tabs/MainTab.razor
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ AppState.SelectedSlotsAreValid)
</MudSelect>
}

@if (Pokemon is IFormArgument && (Pokemon is { PersonalInfo.HasForms: true } || Pokemon is { Species: (ushort)Species.Unown }))
@if (Pokemon is ISpeciesForm && (Pokemon is { PersonalInfo.HasForms: true } || Pokemon is { Species: (ushort)Species.Unown }))
{
var forms = FormConverter.GetFormList(Pokemon.Species, GameInfo.Strings.types, GameInfo.Strings.forms, GameInfo.GenderSymbolUnicode, Pokemon.Context);
if (forms.AsEnumerable().Any(f => !string.IsNullOrEmpty(f)))
Expand Down

0 comments on commit 780ef37

Please sign in to comment.