Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 18, 2024
1 parent 6833424 commit 2cebc06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { v4 as uuidv4 } from 'uuid';
import { UUID } from '@/constants/storage-key';
import { APP_ENV } from '@/config';
import { formatCurrency } from '@/utils/format';
import BigNumber from 'bignumber.js';

export const getUuid = (): string => {
let uuidText = localStorage.get(UUID) as string;
Expand Down Expand Up @@ -60,7 +61,7 @@ export const shareBTCOG = (params: {
refCode: string,
}) => {
const shareUrl = getLink(params.refCode);
const content = `I ♥️ Bitcoin\n\nI’ve spent ${params.fee} BTC on transaction fees. Right now, that’s $${formatCurrency(params.feeUSD, 0, 2)}.\n\nAnd I can’t wait for $BVM to launch.\n\n@BVMnetwork is going to be the future of Bitcoin. I’m going to be doing so much more with my BTC.\n\n${shareUrl}`;
const content = `I ♥️ Bitcoin\n\nI’ve spent ${new BigNumber(params.fee).toFixed()} BTC on transaction fees. Right now, that’s $${formatCurrency(new BigNumber(params.feeUSD || 1).toNumber() || 1, 0, 2)}.\n\nAnd I can’t wait for $BVM to launch.\n\n@BVMnetwork is going to be the future of Bitcoin. I’m going to be doing so much more with my BTC.\n\n${shareUrl}`;

window.open(
`https://twitter.com/intent/tweet?text=${encodeURIComponent(
Expand Down

0 comments on commit 2cebc06

Please sign in to comment.