diff --git a/packages/trader/src/AppV2/Components/ServicesErrorSnackbar/services-error-snackbar.tsx b/packages/trader/src/AppV2/Components/ServicesErrorSnackbar/services-error-snackbar.tsx index dfe60c4fca96..f67304a49dbd 100644 --- a/packages/trader/src/AppV2/Components/ServicesErrorSnackbar/services-error-snackbar.tsx +++ b/packages/trader/src/AppV2/Components/ServicesErrorSnackbar/services-error-snackbar.tsx @@ -9,8 +9,6 @@ import useContractDetails from 'AppV2/Hooks/useContractDetails'; import { checkIsServiceModalError, SERVICE_ERROR } from 'AppV2/Utils/layout-utils'; import { getDisplayedContractTypes } from 'AppV2/Utils/trade-types-utils'; -const PROLONGATED_DURATION = 8000; - const ServicesErrorSnackbar = observer(() => { const { common: { services_error, resetServicesError }, @@ -51,7 +49,6 @@ const ServicesErrorSnackbar = observer(() => { : '48px'; const action_props = { actionText: localize('View'), - delay: PROLONGATED_DURATION, onActionClick: () => window.open(getStaticUrl('tnc/trading-terms.pdf', true)), }; diff --git a/packages/trader/src/AppV2/Components/TradeParameters/Barrier/barrier-input.tsx b/packages/trader/src/AppV2/Components/TradeParameters/Barrier/barrier-input.tsx index 90c6bb1c8a23..8235fbefc0a2 100644 --- a/packages/trader/src/AppV2/Components/TradeParameters/Barrier/barrier-input.tsx +++ b/packages/trader/src/AppV2/Components/TradeParameters/Barrier/barrier-input.tsx @@ -181,6 +181,11 @@ const BarrierInput = observer( onAction: () => { if (validation_errors.barrier_1.length === 0) { onClose(true); + + // This is a workaround to re-trigger any validation errors that were hidden behind the action sheet + handleOnChange({ + target: { name: 'barrier_1', value: barrier_1.replace(/[+-]/g, '') }, + }); } else { setShouldShowError(true); }