File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
CollectionDetailPage/CollectionItem
Modals/EditPriceAndBeneficiaryModal Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( ( ) => {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments