Skip to content

Commit

Permalink
Update alert text to match button text
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 26, 2023
1 parent 336e637 commit 39d612c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ export function SuggestionAlertMainPage({ ...restProps }) {
if (!hasMatch && numSuggestions > 0) {
let text = t(
'Currently selected dataset does not seem to match your sequences, ' +
'but there are {{ n }} other datasets which might. Click "Change dataset" to see the list.',
'but there are {{ n }} other datasets which might. Click "Change reference dataset" to see the list.',
{ n: numSuggestions },
)

if (numSuggestions === 1) {
text = t(
'Currently selected dataset does not seem to match your sequences, ' +
'but there is 1 dataset which might. Click "Change dataset" to see the list.',
'but there is 1 dataset which might. Click "Change reference dataset" to see the list.',
)
}

Expand All @@ -57,7 +57,7 @@ export function SuggestionAlertMainPage({ ...restProps }) {
<Alert closeClassName="d-none" fade={false} color="primary">
<h6 className="font-weight-bold">{t('Multiple matching datasets.')}</h6>
<p className="small">
{t('{{ n }} datasets appear to match your sequences. Click "Change dataset" to see the list.', {
{t('{{ n }} datasets appear to match your sequences. Click "Change reference dataset" to see the list.', {
n: numSuggestions,
})}
</p>
Expand Down

0 comments on commit 39d612c

Please sign in to comment.