From 1537c96a2ce361dd8b13904a4555c76f32f3c7f1 Mon Sep 17 00:00:00 2001 From: Jen Tak Date: Mon, 3 May 2021 13:41:21 +0200 Subject: [PATCH] fixup! fixup! feat: #2282 Warn when safety_checks are disabled --- .../suite/src/components/suite/Banners/SafetyChecks.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/suite/src/components/suite/Banners/SafetyChecks.tsx b/packages/suite/src/components/suite/Banners/SafetyChecks.tsx index 9c39ba24a0a0..02bcfb188daf 100644 --- a/packages/suite/src/components/suite/Banners/SafetyChecks.tsx +++ b/packages/suite/src/components/suite/Banners/SafetyChecks.tsx @@ -24,10 +24,11 @@ const SafetyChecksBanner = (props: Props) => { 'data-test': '@banner/safety-checks/button', }} dismissal={ - props.onDismiss !== undefined && { - onClick: props.onDismiss, - 'data-test': '@banner/safety-checks/dismiss', - } || undefined + (props.onDismiss !== undefined && { + onClick: props.onDismiss, + 'data-test': '@banner/safety-checks/dismiss', + }) || + undefined } /> );