mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 11:39:08 +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]);
|
}, [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 &&
|
||||||
|
|
Loading…
Reference in a new issue