We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 148ba7e commit 44ade8bCopy full SHA for 44ade8b
src/utils/twitter.ts
@@ -27,4 +27,10 @@ export const getNewMintMessage = (
27
28
#Unchain_Ukraine #StandWithUkraine ${FRONTEND_URL}/voucher/${voucherId}`;
29
30
-export const tweetMessage = (body: string) => CLIENT.readWrite.v2.tweet(body);
+export const tweetMessage = async (body: string) => {
31
+ try {
32
+ await CLIENT.readWrite.v2.tweet(body);
33
+ } catch (error) {
34
+ console.error('Error tweeting message:', error);
35
+ }
36
+};
0 commit comments