mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 17:25:39 +03:00
Mute socket messages in production, fix max-len, update dependencies
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
// eslint-disable-next-line max-len
|
||||
const getFullSeconds = ({ startedAt, total }) => (startedAt ? Math.floor((new Date() - startedAt) / 1000) + total : total);
|
||||
const getFullSeconds = ({ startedAt, total }) => {
|
||||
if (startedAt) {
|
||||
return Math.floor((new Date() - startedAt) / 1000) + total;
|
||||
}
|
||||
|
||||
return total;
|
||||
};
|
||||
|
||||
export const createTimer = ({ hours, minutes, seconds }) => ({
|
||||
startedAt: null,
|
||||
|
||||
Reference in New Issue
Block a user