Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
♻️ disable button if no secret
  • Loading branch information
michellewzhang committed Nov 15, 2024
commit 9dfbc5a6629127614e04b8e95b9b280ccd8e1ea1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import useApi from 'sentry/utils/useApi';
import useOrganization from 'sentry/utils/useOrganization';

function _usePostSecret({

Check failure on line 14 in static/app/components/events/featureFlags/onboardingIntegrationSection.tsx

View workflow job for this annotation

GitHub Actions / self-hosted

'_usePostSecret' is declared but its value is never read.
orgSlug,
provider,
}: {
Expand Down Expand Up @@ -75,6 +75,7 @@
// postSecret(secret);
setTokenSaved(true);
}}
disabled={secret === ''}
>
{t('Save')}
</Button>
Expand Down
Loading