Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgriff committed Nov 6, 2024
1 parent 6e6ead9 commit b4b3da9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private static void ThrowIfNeitherIdNorCompanyNumberIsSpecified(AddOrganisationF

private static void ThrowIfBothIdAndCompanyNumberAreSpecified(AddOrganisationFoundViewModel viewModel)
{
if (!viewModel.Id.HasValue && !string.IsNullOrWhiteSpace(viewModel.CompanyNumber))
if (viewModel.Id.HasValue && !string.IsNullOrWhiteSpace(viewModel.CompanyNumber))
{
// It is only valid to specify ONE of `id` or `companyNumber`
throw new PageNotFoundException();
Expand Down

0 comments on commit b4b3da9

Please sign in to comment.