Update logic for canSave() to allow saving regardless of the enabled value. (#2538)

This commit is contained in:
Harpreet Singh 2023-01-01 11:44:49 +13:00 committed by GitHub
parent e7318da2b4
commit 41499c78c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,18 +53,10 @@ export const ConfigNotify = () => {
}, [twitter]); }, [twitter]);
const canSave = (): boolean => { const canSave = (): boolean => {
const { const { apiKey, apiSecret, accessToken, accessTokenSecret, bearerToken, goLiveMessage } =
enabled, formDataValues;
apiKey,
apiSecret,
accessToken,
accessTokenSecret,
bearerToken,
goLiveMessage,
} = formDataValues;
return ( return (
enabled &&
!!apiKey && !!apiKey &&
!!apiSecret && !!apiSecret &&
!!accessToken && !!accessToken &&