Skip to content

Commit

Permalink
Merge pull request #1278 from internetee/timeleft-sms-send-issue
Browse files Browse the repository at this point in the history
fixed sign in and javascript timeleft error
  • Loading branch information
vohmar authored Jun 28, 2024
2 parents d62e624 + c2a6291 commit 1565454
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 1565454

Please sign in to comment.