fix: key on tx list (#8687)

This commit is contained in:
Nuno 2026-06-18 14:17:47 +01:00 committed by GitHub
parent b922346bb6
commit 6124cf1c04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 };