Skip to content

Commit ec954ac

Browse files
committed
fix: Error Info should be correct
1 parent 49d54e6 commit ec954ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

public/locales/en/dataset.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@
366366
"testGuestbook": "Test Guestbook",
367367
"previewButton": "Preview Guestbook"
368368
},
369-
"defaultLicenseUpdateError": "An error occurred while updating the dataset license. Please try again."
369+
"defaultLicenseUpdateError": "An error occurred while updating the dataset license. Please try again.",
370+
"defaultTermsOfAccessUpdateError": "An error occurred while updating the dataset terms of access. Please try again."
370371
}
371372
}

tests/component/sections/edit-dataset-terms/useUpdateTermsOfAccess.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('useUpdateTermsOfAccess', () => {
7979
expect(onSuccessfulUpdateTermsOfAccess).to.not.have.been.called
8080
expect(result.current.isLoading).to.deep.equal(false)
8181
expect(result.current.error).to.deep.equal(
82-
'An error occurred while updating the dataset license. Please try again.'
82+
'An error occurred while updating the dataset terms of access. Please try again.'
8383
)
8484
})
8585

@@ -102,7 +102,7 @@ describe('useUpdateTermsOfAccess', () => {
102102
expect(onSuccessfulUpdateTermsOfAccess).to.not.have.been.called
103103
expect(result.current.isLoading).to.deep.equal(false)
104104
expect(result.current.error).to.deep.equal(
105-
'An error occurred while updating the dataset license. Please try again.'
105+
'An error occurred while updating the dataset terms of access. Please try again.'
106106
)
107107
})
108108
})

0 commit comments

Comments
 (0)