fix: key on tx list (#8687)
This commit is contained in:
parent
b922346bb6
commit
6124cf1c04
@ -471,7 +471,9 @@ const WalletsList: React.FC = () => {
|
||||
|
||||
const sectionListKeyExtractor = useCallback((item: any, index: any) => {
|
||||
if (typeof item === 'string') return item;
|
||||
return item?.hash || item?.txid || `${item}${index}`;
|
||||
const txKey = item?.hash || item?.txid;
|
||||
if (txKey && item?.walletID) return `${txKey}_${item.walletID}`;
|
||||
return txKey || `${item}${index}`;
|
||||
}, []);
|
||||
|
||||
const refreshProps = isDesktop || isElectrumDisabled ? {} : { refreshing: isLoading, onRefresh };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user