From e479d7bb07387a516e0097e66d9a44b4fc1118a6 Mon Sep 17 00:00:00 2001 From: koalasat Date: Tue, 11 Mar 2025 09:52:21 +0100 Subject: [PATCH] Remove grid alert when not available --- frontend/src/components/MakerForm/SelectCoordinator.tsx | 8 ++++---- frontend/static/locales/ca.json | 1 + frontend/static/locales/cs.json | 1 + frontend/static/locales/de.json | 1 + frontend/static/locales/en.json | 1 + frontend/static/locales/es.json | 1 + frontend/static/locales/eu.json | 1 + frontend/static/locales/fr.json | 1 + frontend/static/locales/it.json | 1 + frontend/static/locales/ja.json | 1 + frontend/static/locales/pl.json | 1 + frontend/static/locales/pt.json | 3 ++- frontend/static/locales/ru.json | 1 + frontend/static/locales/sv.json | 1 + frontend/static/locales/sw.json | 1 + frontend/static/locales/th.json | 1 + frontend/static/locales/zh-SI.json | 1 + frontend/static/locales/zh-TR.json | 1 + 18 files changed, 22 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/MakerForm/SelectCoordinator.tsx b/frontend/src/components/MakerForm/SelectCoordinator.tsx index f4d0d910..1da8da6f 100644 --- a/frontend/src/components/MakerForm/SelectCoordinator.tsx +++ b/frontend/src/components/MakerForm/SelectCoordinator.tsx @@ -46,13 +46,13 @@ const SelectCoordinator: React.FC = ({ return ( - - {!coordinator?.info?.swap_enabled && ( + {coordinator?.info && !coordinator?.info?.swap_enabled && ( + {t('This coordinator does not support on-chain swaps.')} - )} - + + )}