fix(shfits):small fix
This commit is contained in:
parent
1fe2c1291c
commit
5ec131c863
|
|
@ -48,7 +48,7 @@ export function normalizeShiftPayload(payload: {
|
||||||
const end_time = asLocalDateOn(payload.end_time);
|
const end_time = asLocalDateOn(payload.end_time);
|
||||||
|
|
||||||
const type = (payload.type || '').trim().toUpperCase();
|
const type = (payload.type || '').trim().toUpperCase();
|
||||||
const is_remote = payload.is_remote === true;
|
const is_remote = payload.is_remote;
|
||||||
const is_approved = payload.is_approved;
|
const is_approved = payload.is_approved;
|
||||||
//normalize comment
|
//normalize comment
|
||||||
const trimmed = typeof payload.comment === 'string' ? payload.comment.trim() : null;
|
const trimmed = typeof payload.comment === 'string' ? payload.comment.trim() : null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user