Skip to content

Commit

Permalink
code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annvelents committed Dec 27, 2024
1 parent 4e45392 commit d9b7757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/customers/update_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def manage_invoice_custom_sections
customer.skip_invoice_custom_sections = args[:skip_invoice_custom_sections]
end

if args.key?(:applicable_invoice_custom_section_ids) && args[:skip_invoice_custom_sections] != true
if args.key?(:applicable_invoice_custom_section_ids) && !args[:skip_invoice_custom_sections]
customer.skip_invoice_custom_sections = false
UpdateInvoiceCustomSectionsService.call(customer:, section_ids: args[:applicable_invoice_custom_section_ids])
end
Expand Down
2 changes: 1 addition & 1 deletion spec/graphql/resolvers/customer_resolver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
end
end

context 'when customer has nested from organization invoice_custom_sections' do
context 'when customer has invoice_custom_sections nested from organization ' do
before do
customer.selected_invoice_custom_sections = []
end
Expand Down

0 comments on commit d9b7757

Please sign in to comment.