diff --git a/views/TransferToken/TransferTokenAmount.js b/views/TransferToken/TransferTokenAmount.js index 88948bf..42926fc 100644 --- a/views/TransferToken/TransferTokenAmount.js +++ b/views/TransferToken/TransferTokenAmount.js @@ -18,6 +18,7 @@ import { MESSAGE_TYPES } from '../../scripts/helpers/constants'; import { getDRC20Inscriptions } from '../../scripts/helpers/doginals'; import { sendMessage } from '../../scripts/helpers/message'; import { NFT } from '../Transactions/components/NFT'; +import { set } from 'bitcore-lib-doge/lib/hdkeycache'; export const TransferTokenAmount = ({ setFormPage, @@ -72,11 +73,11 @@ export const TransferTokenAmount = ({ onPress={() => { setSelectedNFT(item); }} - selected={selectedNFT?.txid === item.txid} + selected={selectedNFT?.location === item.location} /> ); }, - [selectedNFT?.txid, setSelectedNFT] + [selectedNFT?.location, setSelectedNFT] ); const onSubmit = useCallback(() => { @@ -145,7 +146,7 @@ export const TransferTokenAmount = ({ item.inscriptionNumber} + keyExtractor={(item) => selectedNFT?.location + item.location} numColumns={2} initialNumToRender={4} /> @@ -162,7 +163,10 @@ export const TransferTokenAmount = ({