From 53ad4706172dd423bfd89bdf5cf44bfecae6fa68 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Thu, 29 Jun 2023 23:37:11 +0300 Subject: [PATCH] Update condition for triggering collection sync --- pages/collections/create.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 301c533..f13280e 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -1109,7 +1109,7 @@ const CollectionCreationPage: NextPage = () => { const syncCollections = useCallback(async () => { const collectionAddress = minterType === 'openEdition' ? openEditionMinterDetails?.sg721ContractAddress : sg721ContractAddress - if (collectionAddress) { + if (collectionAddress && SYNC_COLLECTIONS_API_URL) { await axios.get(`${SYNC_COLLECTIONS_API_URL}/${collectionAddress}`).catch((error) => { console.error('Sync collections: ', error) })