Skip to content

Commit bb1d19a

Browse files
authored
fix: Item Orders variant (#3312)
1 parent aecff8d commit bb1d19a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/CollectionDetailPage/CollectionItem/CollectionItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function CollectionItem({
4444
!isOffchainPublicItemOrdersEnabled || (isEnableForSaleOffchainMarketplace && item.tradeId) || isOnSaleLegacy
4545

4646
const isWalletVariant = useMemo(() => {
47-
return isOffchainPublicItemOrdersEnabledVariants?.payload.value.trim()?.toLocaleLowerCase() === ethAddress?.toLocaleLowerCase()
47+
return isOffchainPublicItemOrdersEnabledVariants?.payload?.value?.trim()?.toLocaleLowerCase() === ethAddress?.toLocaleLowerCase()
4848
}, [isOffchainPublicItemOrdersEnabledVariants, ethAddress])
4949

5050
const handleEditPriceAndBeneficiary = useCallback(() => {

src/components/Modals/EditPriceAndBeneficiaryModal/EditPriceAndBeneficiaryModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default class EditPriceAndBeneficiaryModal extends React.PureComponent<Pr
113113

114114
getItemPrice() {
115115
const { item, isOffchainPublicItemOrdersEnabledVariants } = this.props
116-
const variantWallet = isOffchainPublicItemOrdersEnabledVariants?.payload.value.trim()
116+
const variantWallet = isOffchainPublicItemOrdersEnabledVariants?.payload?.value?.trim()
117117
if (variantWallet?.toLocaleLowerCase() === item.owner?.toLocaleLowerCase()) {
118118
return ethers.utils.formatEther(ethers.constants.MaxUint256)
119119
}

0 commit comments

Comments
 (0)