Skip to content

Commit

Permalink
fixed sign in and javascript timeleft error
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Jun 28, 2024
1 parent d62e624 commit c2a6291
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/auth/tara_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/controllers/timeleft_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2a6291

Please sign in to comment.