Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgriff committed Nov 8, 2024
1 parent 0fd33ec commit 5ca2ed6
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 5ca2ed6

Please sign in to comment.