diff --git a/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.test.tsx b/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.test.tsx index 03a1b0bced..60aeb0d45c 100644 --- a/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.test.tsx +++ b/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.test.tsx @@ -160,7 +160,6 @@ describe('TokenRequiredModal', () => { const cancelButton = await screen.findByRole('button', { name: /Cancel/ }) await user.click(cancelButton) - expect(setTokenRequired).toHaveBeenCalledWith(false) await waitFor(() => expect(closeModal).toHaveBeenCalled()) }) }) diff --git a/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.tsx b/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.tsx index 60be641874..91dd41bb3b 100644 --- a/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.tsx +++ b/src/pages/AccountSettings/tabs/OrgUploadToken/TokenlessSection/TokenRequiredModal.tsx @@ -8,7 +8,7 @@ interface TokenlessModalProps { isLoading: boolean } -const TokenlessModal = ({ +const TokenRequiredModal = ({ closeModal, setTokenRequired, isLoading, @@ -50,7 +50,6 @@ const TokenlessModal = ({