Skip to content

Commit

Permalink
feat: CQDG-835 handle manifest id flow on file manifest modal 2
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulous committed Sep 11, 2024
1 parent a3c2dbf commit f4d2338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/reports/DownloadFileManifestModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const DownloadFileManifestModal = ({
};

const handleManifestId = async () => {
if (isManifestIdTriggered || lastSetId) {
if ((isManifestIdTriggered && lastSetId) || setId) {
handleManifestIdCopy();
} else {
setIsManifestIdTriggered(true);
Expand Down Expand Up @@ -175,7 +175,7 @@ const DownloadFileManifestModal = ({
<Button
onClick={handleManifestId}
loading={isLoading}
icon={isManifestIdTriggered ? <CopyOutlined /> : <FileTextOutlined />}
icon={isManifestIdTriggered || setId ? <CopyOutlined /> : <FileTextOutlined />}
>
{(!isLoading && isManifestIdTriggered) || setId
? truncateString(lastSetId, 20)
Expand Down

0 comments on commit f4d2338

Please sign in to comment.