diff --git a/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/components/preview/preview.tsx b/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/components/preview/preview.tsx index 93f6787ad5..334fe9540f 100644 --- a/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/components/preview/preview.tsx +++ b/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/components/preview/preview.tsx @@ -74,7 +74,7 @@ function generateLendingStats(summary: ActionSummary, bank: ExtendedBankInfo, is stats.push(getHealthStat(summary.actionPreview.health, false, summary.simulationPreview?.health)); if (summary.simulationPreview?.liquidationPrice && bank.isActive) - stats.push(getLiquidationStat(bank, isLoading, summary.simulationPreview?.liquidationPrice)); + stats.push(getLiquidationStat(bank, false, summary.simulationPreview?.liquidationPrice)); if (summary.actionPreview.bankCap) stats.push(getPoolSizeStat(summary.actionPreview.bankCap, bank, isLending)); stats.push(getBankTypeStat(bank)); diff --git a/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/hooks/use-lend-simulation.hooks.ts b/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/hooks/use-lend-simulation.hooks.ts index d40ea2c55a..7be0ec7b55 100644 --- a/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/hooks/use-lend-simulation.hooks.ts +++ b/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/hooks/use-lend-simulation.hooks.ts @@ -104,7 +104,7 @@ export function useLendSimulation({ if (amount === 0) missingParams.push("amount is 0"); if (!selectedBank) missingParams.push("bank is null"); - console.error(`Can't simulate transaction: ${missingParams.join(", ")}`); + // console.error(`Can't simulate transaction: ${missingParams.join(", ")}`); setActionTxns({ actionTxn: null, additionalTxns: [] }); return; } diff --git a/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/utils/lend-actions.utils.ts b/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/utils/lend-actions.utils.ts index 0f76fb8f46..c0a72998e8 100644 --- a/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/utils/lend-actions.utils.ts +++ b/packages/mrgn-ui/src/components/actionbox-v2/actions/lend-box/utils/lend-actions.utils.ts @@ -48,7 +48,7 @@ export const handleExecuteLendingAction = async ({ setIsLoading(false); if (txnSig) { - setIsComplete([...txnSig]); + setIsComplete(Array.isArray(txnSig) ? txnSig : [txnSig]); captureEvent(`user_${actionType.toLowerCase()}`, { uuid: attemptUuid, tokenSymbol: bank.meta.tokenSymbol,