mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 11:34:08 +00:00
[Transaction List v2] Prevent "Send Again" for ERC721 transfers (#1889)
This commit is contained in:
parent
dbf34c759a
commit
ded5e14257
@ -30,7 +30,15 @@ export const TxInfoDetails = ({ title, address, isTransferType, txInfo }: TxInfo
|
||||
const knownAddress = recipientName !== 'UNKNOWN'
|
||||
|
||||
const { txLocation } = useContext<TxLocationProps>(TxLocationContext)
|
||||
const canRepeatTransaction = isTransferType && txLocation === 'history' && txInfo?.direction === 'OUTGOING'
|
||||
const canRepeatTransaction =
|
||||
// is transfer type by context
|
||||
isTransferType &&
|
||||
// not a Collectible
|
||||
txInfo?.transferInfo.type !== 'ERC721' &&
|
||||
// in history list
|
||||
txLocation === 'history' &&
|
||||
// it's outgoing
|
||||
txInfo?.direction === 'OUTGOING'
|
||||
|
||||
const [sendModalOpen, setSendModalOpen] = useState(false)
|
||||
const sendModalOpenHandler = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user