Skip to content

Commit

Permalink
Fix create collection loading on zero cooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov committed Mar 4, 2024
1 parent c283814 commit 3e09c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/create-collection/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function useLastCollection() {
function useCreateCountdown() {
const { marketplace } = useMarketplace();
const { config, admins } = marketplace || {};
const isConfigReady = Boolean(config);
const msBetweenCollections = Number(config?.timeBetweenCreateCollections || '0');
const isConfigReady = Boolean(msBetweenCollections);

const { account } = useAccount();
const isAdmin = admins?.includes(account?.decodedAddress || '');
Expand Down

0 comments on commit 3e09c8d

Please sign in to comment.