Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ce-v2 into dev
  • Loading branch information
ted-palmer committed Oct 26, 2023
2 parents f6040e6 + e93e757 commit e2e462b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/sync-env-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
git fetch --unshallow
- name: Sync testnet with main
run: |
git fetch --unshallow
git checkout testnets
git pull
git merge --no-ff main -m "Auto-merge main into testnet"
git push
- name: Sync default with main
run: |
git checkout default
git pull
git merge --no-ff main -m "Auto-merge main into default"
git push
- name: Report Status
uses: ravsamhq/notify-slack-action@v1
if: always()
Expand Down
17 changes: 10 additions & 7 deletions pages/[chain]/collection/[contract].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,16 @@ const CollectionPage: NextPage<Props> = ({ id, ssr }) => {
(stage) => stage.kind === 'public'
)

const mintPrice = mintData?.price?.amount?.decimal
? mintData?.price?.amount?.decimal === 0
? 'Free'
: `${
mintData?.price?.amount?.decimal
} ${mintData?.price?.currency?.symbol?.toUpperCase()}`
: undefined
const mintPrice =
typeof mintData?.price?.amount?.decimal === 'number' &&
mintData?.price?.amount?.decimal !== null &&
mintData?.price?.amount?.decimal !== undefined
? mintData?.price?.amount?.decimal === 0
? 'Free'
: `${
mintData?.price?.amount?.decimal
} ${mintData?.price?.currency?.symbol?.toUpperCase()}`
: undefined

let tokenQuery: Parameters<typeof useDynamicTokens>['0'] = {
limit: 20,
Expand Down

0 comments on commit e2e462b

Please sign in to comment.