From 1a112006d115967e29d5225e5860fb831fa08d4c Mon Sep 17 00:00:00 2001 From: 24c02 <163450896+24c02@users.noreply.github.com> Date: Thu, 10 Jul 2025 13:10:48 -0400 Subject: [PATCH] safer --- .../components/templates/hackatime_7_day_streak_template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/snail_mail/components/templates/hackatime_7_day_streak_template.rb b/app/lib/snail_mail/components/templates/hackatime_7_day_streak_template.rb index b1d2ec0..a6c94e7 100644 --- a/app/lib/snail_mail/components/templates/hackatime_7_day_streak_template.rb +++ b/app/lib/snail_mail/components/templates/hackatime_7_day_streak_template.rb @@ -28,7 +28,7 @@ module SnailMail ca = Date.parse(ca) rescue nil if ca.present? text = <<~EOM - Dearest #{letter.address&.first_name&.upcase} #{letter.address&.last_name[0]&.upcase}., + Dearest #{letter.address&.first_name&.upcase} #{letter.address&.last_name&.[](0)&.upcase}., #{ca.present? ? "On the #{ca.day.ordinalize} of #{Date::MONTHNAMES[ca.month]}" : "Recently"} you joined the ranks of those who have logged coding time on Hackatime 7 days in a row.