Skip to content

Commit

Permalink
Fix a Sorbet error
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmsmith committed Feb 1, 2024
1 parent 6e94bd0 commit 1bdd13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/subject_area_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class FilterOption < T::Enum
sig { params(subject_area: SubjectArea, current_option: T.any(FilterOption, Term), options: ActiveRecord::Relation).returns(T::Array[{ key: String, label: String, url: String, selected: T::Boolean }]) }
def self.filter_links(subject_area, current_option, options)
links = FilterOption.values.map do |value|
serialized_value = T.cast(value.serialize, String)
serialized_value = value.serialize
{
key: serialized_value,
label: serialized_value.titlecase,
Expand Down

0 comments on commit 1bdd13f

Please sign in to comment.