Fix: Correct I18n reference in last_sync method for proper translation

This commit is contained in:
2026-03-01 01:07:43 -05:00
parent 7b7b07b5fa
commit b15b88f48d

View File

@@ -27,7 +27,7 @@ class Qbo < ActiveRecord::Base
# Returns the last sync time formatted for display. If no sync has occurred, returns a default message. # Returns the last sync time formatted for display. If no sync has occurred, returns a default message.
def self.last_sync def self.last_sync
qbo = QboConnectionService.current! qbo = QboConnectionService.current!
return t(:label_qbo_never_synced) unless qbo&.last_sync return I18n.t(:label_qbo_never_synced) unless qbo&.last_sync
format_time(qbo.last_sync) format_time(qbo.last_sync)
end end