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]);
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 &&