From 24be2af043fafc6fc04a6cca009b5e5f509ad2b9 Mon Sep 17 00:00:00 2001 From: memoyil <2213635+memoyil@users.noreply.github.com> Date: Mon, 8 May 2023 13:45:11 +0200 Subject: [PATCH] fix: Quick input stays same after amount change --- apps/aptos/components/CurrencyInputPanel/index.tsx | 4 ++-- apps/web/src/components/CurrencyInputPanel/index.tsx | 12 +++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/apps/aptos/components/CurrencyInputPanel/index.tsx b/apps/aptos/components/CurrencyInputPanel/index.tsx index b591089eb43e26..0d45f788984a2e 100644 --- a/apps/aptos/components/CurrencyInputPanel/index.tsx +++ b/apps/aptos/components/CurrencyInputPanel/index.tsx @@ -182,8 +182,8 @@ export const CurrencyInputPanel = ({ onPercentInput && [25, 50, 75].map((percent) => { const isAtCurrentPercent = - (maxAmount && value === percentAmount[percent]) || (lpPercent && lpPercent === percent.toString()) - + (maxAmount && value !== '0' && value === percentAmount[percent]) || + (lpPercent && lpPercent === percent.toString()) return (