diff --git a/app/models/communication/extranet.rb b/app/models/communication/extranet.rb index 8255e487b066b904008074089d7af8a3a16ceee0..79fd80fe035455e1efacfcc71a004b221fe34ad1 100644 --- a/app/models/communication/extranet.rb +++ b/app/models/communication/extranet.rb @@ -59,7 +59,7 @@ class Communication::Extranet < ApplicationRecord def should_show_years? # For a single program, year is like cohort - return false if about.nil? || about&.is_a? Education::Program + return false if about.nil? || about&.is_a?(Education::Program) # if a school has a single program, same thing about&.programs&.many? end