Skip to content

Commit

Permalink
Update code in detail
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnhu committed Jun 25, 2024
1 parent 1575f30 commit adfa518
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ const Component: React.FC<Props> = ({ className, currentAirdrop }: Props) => {
}, [navigate]);

const onClickShare = useCallback(async () => {
if (!currentAirdrop || !currentAirdrop.start_snapshot || !currentAirdrop.end_snapshot) {
if (!currentAirdrop || !currentAirdrop.network) {
return;
}

const url = await apiSDK.getShareTwitterAirdropURL(currentAirdrop.start_snapshot, currentAirdrop.end_snapshot);
const url = apiSDK.getShareTwitterAirdropURL(currentAirdrop.network);

telegramConnector.openLink(url);
}, [currentAirdrop]);
Expand Down

0 comments on commit adfa518

Please sign in to comment.