mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Update logic for canSave() to allow saving regardless of the enabled value. (#2538)
This commit is contained in:
parent
e7318da2b4
commit
41499c78c3
@ -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 &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user