mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 01:14:12 +03:00
Add email and password change functionality for a current user, remove deep compare hooks
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import { useDeepCompareEffect, useForceUpdate, usePrevious } from '../../hooks';
|
||||
import { useForceUpdate, usePrevious } from '../../hooks';
|
||||
import { formatTimer } from '../../utils/timer';
|
||||
|
||||
import styles from './Timer.module.css';
|
||||
@@ -50,7 +50,7 @@ const Timer = React.memo(({
|
||||
clearInterval(interval.current);
|
||||
}, []);
|
||||
|
||||
useDeepCompareEffect(() => {
|
||||
useEffect(() => {
|
||||
if (prevStartedAt) {
|
||||
if (!startedAt) {
|
||||
stop();
|
||||
|
||||
Reference in New Issue
Block a user