summaryrefslogtreecommitdiff
path: root/src/scripts/profile.entry.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/profile.entry.ts')
-rw-r--r--src/scripts/profile.entry.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/profile.entry.ts b/src/scripts/profile.entry.ts
index 57c6b56c..b194e3a9 100644
--- a/src/scripts/profile.entry.ts
+++ b/src/scripts/profile.entry.ts
@@ -6,14 +6,14 @@ window["jQuery"] = $;
$(document).ready(() => {
- let api = new APIController(() => {
+ const api = new APIController(() => {
});
$("#delete-account").on("click", () => {
- let modalDialog = <any>$("#confirm-delete-account");
+ const modalDialog = <any>$("#confirm-delete-account");
// Function called on delete confirmation
- let callback = () => {
+ const callback = () => {
api.deleteUser(parseInt(localStorage.getItem("userId"))).then(() => {
removeUserInfo();
gapi.auth2.getAuthInstance().signOut().then(() => {
@@ -23,7 +23,7 @@ $(document).ready(() => {
modalDialog.find("button.confirm").off();
modalDialog.modal("hide");
- let alert = $(".account-delete-alert");
+ const alert = $(".account-delete-alert");
alert.find("code").text(reason.code + ": " + reason.description);
alert.slideDown(200);