Merge pull request #39 from public-awesome/fix-external-link-issue

Fix: external_link related problem on collection creation
This commit is contained in:
Jorge Hernandez 2022-10-20 22:18:58 -06:00 committed by GitHub
commit 6008a4b831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export const CollectionDetails = ({ onChange, uploadMethod, coverImageUrl }: Col
description: descriptionState.value,
symbol: symbolState.value,
imageFile: coverImage ? [coverImage] : [],
externalLink: externalLinkState.value,
externalLink: externalLinkState.value || undefined,
startTradingTime: timestamp ? (timestamp.getTime() * 1_000_000).toString() : '',
explicit,
}

View File

@ -54,6 +54,7 @@ const CollectionCreationPage: NextPage = () => {
vendingFactory: vendingFactoryContract,
} = useContracts()
const scrollRef = useRef<HTMLDivElement>(null)
const messages = useMemo(
() => vendingFactoryContract?.use(VENDING_FACTORY_ADDRESS),
[vendingFactoryContract, wallet.address],