Skip to content

Commit 3d37b47

Browse files
authored
fix(activity): transfer boost (#2110)
1 parent 4a98f25 commit 3d37b47

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/screens/Wallets/BoostPrompt.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ const BoostForm = ({
5656
const [preparing, setPreparing] = useState(true);
5757
const [loading, setLoading] = useState(false);
5858
const [showCustom, setShowCustom] = useState(false);
59-
const boostData = useMemo(() => canBoost(activityItem.id), [activityItem.id]);
59+
const boostData = useMemo(
60+
() => canBoost(activityItem.txId),
61+
[activityItem.txId],
62+
);
6063

6164
const activityItemFee = activityItem.fee;
6265
const recommendedFee = feeEstimates.fast;
@@ -77,7 +80,7 @@ const BoostForm = ({
7780
const res = await setupBoost({
7881
selectedWallet,
7982
selectedNetwork,
80-
txid: activityItem.id,
83+
txid: activityItem.txId,
8184
});
8285
setPreparing(false);
8386

@@ -90,7 +93,7 @@ const BoostForm = ({
9093
return (): void => {
9194
resetSendTransaction();
9295
};
93-
}, [activityItem.id, selectedNetwork, selectedWallet, dispatch]);
96+
}, [activityItem.txId, selectedNetwork, selectedWallet, dispatch]);
9497

9598
// Set fee to recommended value
9699
useEffect(() => {

0 commit comments

Comments
 (0)