Skip to content

Commit 312350f

Browse files
committed
Add a message to report an invalid sequence
1 parent c225ebf commit 312350f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/actions/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export function onMultipleSubmit(sequence, databases) {
8787
if (response.ok) {
8888
return response.json();
8989
} else {
90+
jobIds.push("Invalid sequence. Check your fasta file.");
9091
throw response;
9192
}
9293
})

src/containers/SequenceSearch/components/Results/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Results extends React.Component {
1616
}
1717

1818
onSeeResults(e) {
19-
if (e.target.value === 'Select an Id to check the results'){
19+
if (e.target.value === 'Select an Id to check the results' || e.target.value === 'Invalid sequence. Check your fasta file.'){
2020
store.dispatch(actionCreators.onClearJobId());
2121
} else {
2222
store.dispatch(actionCreators.onClearResult());

0 commit comments

Comments
 (0)