Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Jan 4, 2021
1 parent 3b3bee6 commit 002339e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/containers/WebhookLogs/WebhookLogsList/WebhookLogsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ export const WebhookLogsList: React.SFC<TagListProps> = () => {
});
};

const getCroppedText = (mytext: string, isUrl: boolean = false) => {
if (!mytext) {
const getCroppedText = (croppedtext: string, isUrl: boolean = false) => {
if (!croppedtext) {
return <div className={styles.TableText}>NULL</div>;
}

let newtext = mytext;
let newtext = croppedtext;
if (isUrl) {
newtext = JSON.stringify(mytext);
newtext = JSON.stringify(croppedtext);
}

const Menus = [
{
title: 'Copy text',
icon: <img src={CopyIcon} alt="copy" />,
onClick: () => {
copyToClipboard(mytext);
copyToClipboard(croppedtext);
},
},
{
Expand Down

0 comments on commit 002339e

Please sign in to comment.