From 3f585958d6d36927b40dc8b21ff9d7efb9926537 Mon Sep 17 00:00:00 2001 From: Jackie <1121@generative.xyz> Date: Wed, 4 Sep 2024 17:41:29 +0700 Subject: [PATCH] update --- src/modules/blockchains/Buy/hooks/useFetchingTemplate.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/blockchains/Buy/hooks/useFetchingTemplate.ts b/src/modules/blockchains/Buy/hooks/useFetchingTemplate.ts index f065d2e10..c253872f5 100644 --- a/src/modules/blockchains/Buy/hooks/useFetchingTemplate.ts +++ b/src/modules/blockchains/Buy/hooks/useFetchingTemplate.ts @@ -549,7 +549,9 @@ export default function useFetchingTemplate() { } else { const template = searchParams.get('template'); - if (template) { + console.log('template', template, templateDefault); + + if (template || !ENABLE_CHATBOX) { setTemplate(templateDefault || []); } else if (ENABLE_CHATBOX) { setTemplate([]);