From 620a540be6ec6c8b69650fdc49ab7ac40711cc82 Mon Sep 17 00:00:00 2001 From: "jack.coggin" Date: Thu, 14 Sep 2023 11:58:47 +0100 Subject: [PATCH] fix email preference text on account page --- app/views/user/show.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/user/show.html.slim b/app/views/user/show.html.slim index 004be36a6..d7d0bfc7c 100644 --- a/app/views/user/show.html.slim +++ b/app/views/user/show.html.slim @@ -44,7 +44,7 @@ - row.with_value { nil } - email_preferences.with_row do |row| - row.with_key { 'Email updates about this training course' } - - row.with_value(text: current_user.training_emails.nil? || current_user.training_emails ? t('.training_emails_true') : t('.training_emails_false'), classes: ['data-hj-suppress']) + - row.with_value(text: current_user.training_emails.nil? || current_user.training_emails ? t('my_account.training_emails_true') : t('my_account.training_emails_false'), classes: ['data-hj-suppress']) - row.with_action(text: t('links.change'), href: edit_training_emails_user_path, visually_hidden_text: 'training_emails', html_attributes: { id: :edit_training_emails_user }) = content_resource 'my_account.closing.information'