mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Type casting for if condition
This commit is contained in:
parent
3f43d2f768
commit
78a54ef0bb
1 changed files with 1 additions and 1 deletions
|
@ -692,7 +692,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
$('#notification').hide('bind');
|
||||
}
|
||||
|
||||
if (event.data.is_unavailable === false) {
|
||||
if (Boolean(Number(event.data.is_unavailable)) === false) {
|
||||
// Prepare appointment data.
|
||||
event.data.end_datetime = Date.parseExact(
|
||||
event.data.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
||||
|
|
Loading…
Reference in a new issue