Skip to content

Commit

Permalink
Fix issue (#7179)
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD authored Dec 3, 2024
1 parent 49f1fef commit e8c6aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/react_components/modals/beg_modal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def recently_seen_seniority_modal?
def show_modal?
return false if showing_modal?
return false if recently_seen_seniority_modal?
return false if current_user.current_subscription
return false if current_user.current_subscription?
return false if current_user.donated_in_last_35_days?
return false unless current_user.solutions.count >= 5

Expand Down
2 changes: 1 addition & 1 deletion test/system/components/beg_modal_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class BegModalTest < ApplicationSystemTestCase

test "doesn't show to active subscriber" do
user = setup_user
User.any_instance.stubs(current_subscription: true)
User.any_instance.stubs(current_subscription?: true)

use_capybara_host do
Exercism.without_bullet do
Expand Down

0 comments on commit e8c6aff

Please sign in to comment.