Do no to overwrite the password when updating the account info

This commit is contained in:
Alex Tselegidis 2022-05-20 18:14:45 +02:00
parent 905dd59425
commit b253a002a8

View file

@ -138,7 +138,7 @@ App.Pages.Account = (function () {
timezone: $timezone.val(), timezone: $timezone.val(),
settings: { settings: {
username: $username.val(), username: $username.val(),
password: $password.val() || null, password: $password.val() || undefined,
calendar_view: $calendarView.val(), calendar_view: $calendarView.val(),
notifications: Number(notifications.prop('checked')) notifications: Number(notifications.prop('checked'))
} }