From 41499c78c37aaab04f8ce7cbdb8c43d6e1fc44a1 Mon Sep 17 00:00:00 2001 From: Harpreet Singh Date: Sun, 1 Jan 2023 11:44:49 +1300 Subject: [PATCH] Update logic for canSave() to allow saving regardless of the enabled value. (#2538) --- web/components/config/notification/twitter.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/web/components/config/notification/twitter.tsx b/web/components/config/notification/twitter.tsx index 82e44dcae..c31d99c43 100644 --- a/web/components/config/notification/twitter.tsx +++ b/web/components/config/notification/twitter.tsx @@ -53,18 +53,10 @@ export const ConfigNotify = () => { }, [twitter]); const canSave = (): boolean => { - const { - enabled, - apiKey, - apiSecret, - accessToken, - accessTokenSecret, - bearerToken, - goLiveMessage, - } = formDataValues; + const { apiKey, apiSecret, accessToken, accessTokenSecret, bearerToken, goLiveMessage } = + formDataValues; return ( - enabled && !!apiKey && !!apiSecret && !!accessToken &&