diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx index 202aa9b356..bcddb5df8a 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx @@ -129,6 +129,7 @@ const Sidebar: React.FC = ({tierOptions, handleAmountInput, handleCodeInput, validate, + clearError, errors, testId, handleTrialAmountInput, @@ -174,6 +175,7 @@ const Sidebar: React.FC = ({tierOptions, handleNameInput(e); setNameLength(e.target.value.length); }} + onKeyDown={() => clearError('name')} /> = ({tierOptions, onChange={(e) => { handleDisplayTitleInput(e); }} + onKeyDown={() => clearError('displayTitle')} />