Skip to content

Commit

Permalink
fix to use camelcase & tiny bug
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrajjoshi committed Aug 28, 2024
1 parent aee7da6 commit 6568bed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ describe('DataSecrecy', function () {
MockApiClient.addMockResponse({
url: `/organizations/${organization.slug}/data-secrecy/`,
body: {
access_start: '2022-08-29T01:05:00+00:00',
access_end: '2023-08-29T01:05:00+00:00',
accessStart: '2022-08-29T01:05:00+00:00',
accessEnd: '2023-08-29T01:05:00+00:00',
},
});

Expand All @@ -88,8 +88,8 @@ describe('DataSecrecy', function () {
MockApiClient.addMockResponse({
url: `/organizations/${organization.slug}/data-secrecy/`,
body: {
access_start: '2023-08-29T01:05:00+00:00',
access_end: '2024-08-29T01:05:00+00:00',
accessStart: '2023-08-29T01:05:00+00:00',
accessEnd: '2024-08-29T01:05:00+00:00',
},
});

Expand Down
4 changes: 2 additions & 2 deletions static/app/views/settings/components/dataSecrecy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function DataSecrecy() {
'Sentry employees will not have access to your data unless granted permission'
),
value: allowAccess,
disabled: organization.access.includes('org:write'),
disabled: !organization.access.includes('org:write'),
onBlur: updateAllowedAccess,
};

Expand All @@ -123,7 +123,7 @@ export default function DataSecrecy() {
help: t(
'Open a temporary time window for Sentry employees to access your organization'
),
disabled: allowAccess && organization.access.includes('org:write'),
disabled: allowAccess && !organization.access.includes('org:write'),
value: allowAccess ? '' : allowDateFormData,
onBlur: updateTempAccessDate,
onChange: v => {
Expand Down

0 comments on commit 6568bed

Please sign in to comment.