Skip to content

Commit

Permalink
⚡ in 5 min
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed Jun 6, 2023
1 parent d646ff1 commit 8630971
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 3 additions & 6 deletions components/collection/unlockable/UnlockableContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ import { OSlider } from '@oruga-ui/oruga'
import { timeAgo } from '@/components/collection/utils/timeAgo'
import { collectionId, countDownTime } from './const'
import { UNLOCKABLE_CAMPAIGN, createUnlockableMetadata } from './utils'
import { endOfHour, startOfHour } from 'date-fns'
const { toast } = useToast()
const Loader = defineAsyncComponent(
Expand All @@ -182,12 +183,8 @@ onMounted(async () => {
resultList.value = res.result
})
const mintStartTime = new Date('Jun 4, 2023 10:00:00').getTime()
const windowRange = [
new Date(mintStartTime),
// new Date(mintStartTime + 60 * 60 * 1000),
new Date('Jun 7, 2023 10:00:00'),
]
const now = new Date()
const windowRange = [startOfHour(now), endOfHour(now)]
const handleSelectImage = (image: string) => {
selectedImage.value = image
Expand Down
5 changes: 4 additions & 1 deletion components/collection/unlockable/const.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export const countDownTime = new Date('Jun 5, 2023 17:00:00').getTime()
import { endOfHour } from 'date-fns'

const now = new Date()
export const countDownTime = endOfHour(now).getTime()

export const collectionId = '8'

0 comments on commit 8630971

Please sign in to comment.