Skip to content

Conversation

@raycarrick-ed
Copy link
Contributor

The line used to be:
if orgs.present? && params.fetch(:funder_only, "false") == true
but that didn't work because the param is a string so it was changed to
if orgs.present? && params.fetch(:funder_only, false)
which looks better but doesn't work either for the same reason
(try something like
puts "hello" if "false"
)
so it needs to be
if orgs.present? && params.fetch(:funder_only, "false") == "true"

The line used to be:
    if orgs.present? && params.fetch(:funder_only, "false") == true
but that didn't work because the param is a string so it was changed to
    if orgs.present? && params.fetch(:funder_only, false)
which looks better but doesn't work either for the same reason
(try something like
     puts "hello" if "false"
)
so it needs to be
if orgs.present? && params.fetch(:funder_only, "false") == "true"
@raycarrick-ed raycarrick-ed requested a review from briri March 16, 2021 23:28
Copy link
Contributor

@briri briri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good @raycarrick

@briri briri merged commit 7ac2171 into master Mar 17, 2021
@briri briri deleted the fix_org_autocomplete branch March 17, 2021 16:17
portagenetwork pushed a commit to portagenetwork/roadmap that referenced this pull request Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants