From eee59a1d2e8d4de501a9dfe1bda8c0cbdb28ee8a Mon Sep 17 00:00:00 2001 From: Fabilin Date: Mon, 15 Jul 2024 18:13:52 +0200 Subject: [PATCH] fix #168: add missing locale dependency to sendMessage callback --- src/useTock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useTock.ts b/src/useTock.ts index d5f995e..6988fa6 100644 --- a/src/useTock.ts +++ b/src/useTock.ts @@ -401,7 +401,7 @@ const useTock: ( .then(handlePostBotResponse) .finally(stopLoading); }, - [], + [locale], ); const sendReferralParameter: (referralParameter: string) => Promise =