Skip to content

Commit

Permalink
Fix: Unaffilated list for club ambassadors not assigned to a club
Browse files Browse the repository at this point in the history
It's possible for a club ambassador to not be assigned to a club. If this happens they are still able to access the Club Admin Activity. The unaffiliated datagrid will error out if they're not assigned to a club (or chapter).

```
NoMethodError: undefined method `country_code' for #<NullChapterable:0x00007fd115046990>
```

This update will address this issue.

Refs: #5371
  • Loading branch information
shaun-technovation committed Feb 10, 2025
1 parent ebc33bb commit 5ec7ab9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/null_objects/null_chapterable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ def chapter_program_information
def build_chapter_program_information
ChapterProgramInformation.none
end

def country
nil
end

def country_code
nil
end
end

0 comments on commit 5ec7ab9

Please sign in to comment.