Skip to content

Commit

Permalink
disable burning on evm chain (#2017)
Browse files Browse the repository at this point in the history
Co-authored-by: Tuditi <[email protected]>
  • Loading branch information
MarkNerdi and Tuditi authored Feb 29, 2024
1 parent 66c12a6 commit e1c20c9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { openUrlInBrowser } from '@core/app'
import { handleError } from '@core/error/handlers'
import { localize } from '@core/i18n'
import { IIrc27Nft, Nft, isIrc27Nft, isNftLocked } from '@core/nfts'
import { isEvmChain } from '@core/network'
import { IIrc27Nft, Nft, isNftLocked } from '@core/nfts'
import { checkActiveProfileAuthAsync } from '@core/profile/actions'
import { activeProfile, updateActiveProfile } from '@core/profile/stores'
import { CollectiblesRoute, collectiblesRouter } from '@core/router'
Expand All @@ -14,7 +15,7 @@
export let nft: Nft
$: isLocked = isNftLocked(nft)
$: isBurnDisabled = isLocked || !isIrc27Nft(nft)
$: isBurnDisabled = isLocked || isEvmChain(nft.networkId)
$: isCurrentPfp = $activeProfile.pfp?.id === nft.id
function onSetPfpClick(): void {
Expand Down

0 comments on commit e1c20c9

Please sign in to comment.