mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 22:31:09 +03:00
Update logic for canSave() to allow saving regardless of the enabled value. (#2538)
This commit is contained in:
parent
e7318da2b4
commit
41499c78c3
1 changed files with 2 additions and 10 deletions
|
@ -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…
Reference in a new issue