update
This commit is contained in:
@@ -535,10 +535,12 @@ export class FusionClockPortal extends Interaction {
|
||||
const reasonEl = document.getElementById("fclk-reason-text");
|
||||
const timeEl = document.getElementById("fclk-reason-time");
|
||||
const reason = reasonEl ? reasonEl.value.trim() : "";
|
||||
const depTime = timeEl ? timeEl.value.trim() : "";
|
||||
const rawTime = timeEl ? timeEl.value.trim() : "";
|
||||
const depTime = rawTime ? new Date(rawTime).toISOString() : "";
|
||||
|
||||
if (!reason) {
|
||||
this._showToast("Please provide a reason.", "error");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user