Skip to content

Commit

Permalink
fix: remove check for submissionSecretKey to remove hacky isTest check
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin9foong committed Feb 28, 2025
1 parent 4bd6739 commit c78fca1
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,9 @@ export const SendReminderButton = ({
formId,
submissionId,
})
const submissionSecretKey = submissionData?.submissionSecretKey

// Used to define a test key for Storybook UI Testing
const isTest = import.meta.env.STORYBOOK_NODE_ENV === 'test'
const submissionSecretKey = isTest
? 'storybook-test-dummy-key'
: submissionData?.submissionSecretKey

if (!formId || (!isLoadingSubmissionData && !submissionSecretKey)) {
if (!formId) {
return null
}

Expand Down

0 comments on commit c78fca1

Please sign in to comment.