Skip to content

Commit

Permalink
fix: minor actionbox fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Sep 27, 2024
1 parent f08e389 commit e1e082e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e1e082e

Please sign in to comment.