Skip to content

Commit 68bcac9

Browse files
authored
Remove duplicated ?text= for generated whatsapp link (#32)
* Remove duplicated ?text= * Fix unused console.log
1 parent 5b9ad8c commit 68bcac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getWhatsAppUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface WhatsAppProps extends BaseShareProps {
77
}
88

99
export const getWhatsAppUrl = ({ url, text }: WhatsAppProps) =>
10-
`whatsapp://send?text=${objectToUrlParams({
10+
`whatsapp://send${objectToUrlParams({
1111
text: text ? `${text} ${url}` : url,
1212
})}`;
1313

0 commit comments

Comments
 (0)