From c2a6291263ada0d92e1e173e78eaf4278cce17d2 Mon Sep 17 00:00:00 2001 From: oleghasjanov Date: Fri, 28 Jun 2024 15:32:06 +0300 Subject: [PATCH] fixed sign in and javascript timeleft error --- app/controllers/auth/tara_controller.rb | 2 +- app/javascript/controllers/timeleft_controller.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/auth/tara_controller.rb b/app/controllers/auth/tara_controller.rb index 69add5620..eb4ac2ca0 100644 --- a/app/controllers/auth/tara_controller.rb +++ b/app/controllers/auth/tara_controller.rb @@ -34,7 +34,7 @@ def create end def cancel - redirect_to root_path, notice: t(:sign_in_cancelled) + redirect_to root_path, notice: t('sign_in_cancelled') end private diff --git a/app/javascript/controllers/timeleft_controller.js b/app/javascript/controllers/timeleft_controller.js index ed0783f36..175d48053 100644 --- a/app/javascript/controllers/timeleft_controller.js +++ b/app/javascript/controllers/timeleft_controller.js @@ -40,8 +40,6 @@ export default class extends Controller { let difference = this.timeDifference(); if (difference < 0) { - var expiredMsg = $("#timer_message").data("expiredMessage"); - $("#timer_message").html(expiredMsg); this.stopTimer(); this.buttonTarget.removeAttribute("disabled"); this.buttonTarget.innerHTML = this.defaultMessageTimerValue;