Update condition for triggering collection sync

This commit is contained in:
Serkan Reis 2023-06-29 23:37:11 +03:00
parent 08f3a8da3e
commit 53ad470617

View File

@ -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)
})