Skip to content

Commit

Permalink
Salesforce - doi_estimate_year_one field. (Review comments.)
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Mar 7, 2022
1 parent a00e615 commit c675f6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ def activity_id_not_changed
end

def doi_estimate_field
if member_type === "consortium_organization"
if member_type == "consortium_organization"
begin
num = Integer(doi_estimate)
if num < 0
Expand Down Expand Up @@ -947,7 +947,7 @@ def set_defaults
self.billing_information = {} if billing_information.blank?
self.consortium_id = nil unless member_type == "consortium_organization"
self.non_profit_status = "non-profit" if non_profit_status.blank?
if member_type === "consortium_organization"
if member_type == "consortium_organization"
self.doi_estimate = doi_estimate.to_i
else
self.doi_estimate = 0
Expand Down
1 change: 0 additions & 1 deletion spec/models/provider_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "rails_helper"
require "pp"

describe Provider, type: :model do
let(:provider) { create(:provider) }
Expand Down

0 comments on commit c675f6c

Please sign in to comment.