Added flag on short URL creation which tells if the short URL was already saved

This commit is contained in:
Alejandro Celaya
2022-11-07 18:24:26 +01:00
parent ae1d39bede
commit 4ca31fc162
9 changed files with 23 additions and 19 deletions

View File

@@ -1,7 +1,6 @@
import { faCopy as copyIcon } from '@fortawesome/free-regular-svg-icons';
import { faTimes as closeIcon } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { isNil } from 'ramda';
import { useEffect } from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
import { Tooltip } from 'reactstrap';
@@ -34,7 +33,7 @@ export const CreateShortUrlResult = (useTimeoutToggle: TimeoutToggle) => (
);
}
if (isNil(result)) {
if (!result) {
return null;
}