Skip to content

Commit aecff8d

Browse files
fix: Unconverted max unit price when address is part of variant (#3311)
1 parent 43c997a commit aecff8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Modals/EditPriceAndBeneficiaryModal/EditPriceAndBeneficiaryModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class EditPriceAndBeneficiaryModal extends React.PureComponent<Pr
115115
const { item, isOffchainPublicItemOrdersEnabledVariants } = this.props
116116
const variantWallet = isOffchainPublicItemOrdersEnabledVariants?.payload.value.trim()
117117
if (variantWallet?.toLocaleLowerCase() === item.owner?.toLocaleLowerCase()) {
118-
return ethers.constants.MaxUint256.toString()
118+
return ethers.utils.formatEther(ethers.constants.MaxUint256)
119119
}
120120
return item.price && item.price !== ethers.constants.MaxUint256.toString() ? ethers.utils.formatEther(item.price) : undefined
121121
}

0 commit comments

Comments
 (0)