diff --git a/ui/hooks/useCopyToClipboard.js b/ui/hooks/useCopyToClipboard.js index 8f6384ac0776..2aead9976c06 100644 --- a/ui/hooks/useCopyToClipboard.js +++ b/ui/hooks/useCopyToClipboard.js @@ -1,6 +1,6 @@ import { useState, useCallback } from 'react'; import copyToClipboard from 'copy-to-clipboard'; -import { SECOND } from '../../shared/constants/time'; +import { MINUTE } from '../../shared/constants/time'; import { useTimeout } from './useTimeout'; /** @@ -9,7 +9,7 @@ import { useTimeout } from './useTimeout'; * @param {number} [delay=3000] - delay in ms * @returns {[boolean, Function]} */ -const DEFAULT_DELAY = SECOND * 3; +const DEFAULT_DELAY = MINUTE; export function useCopyToClipboard(delay = DEFAULT_DELAY) { const [copied, setCopied] = useState(false);