Improve usability and efficiency
Allow "saving" a set with no changes Update cleanseVocabString function to be inline with Cloud Function Combine CreateSet and EditSet components Remove redundancy and significantly improve efficiency in the EditSet component
This commit is contained in:
@@ -355,18 +355,6 @@ export default withRouter(class Progress extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
cleanseVocabString = (item) => {
|
||||
const chars = " .,()-_'\"";
|
||||
|
||||
let newString = item;
|
||||
|
||||
chars.split("").forEach((char) => {
|
||||
newString = newString.replace(char, "");
|
||||
});
|
||||
|
||||
return newString;
|
||||
}
|
||||
|
||||
processAnswer = async (referrer="physical") => {
|
||||
if (this.state.canProceed) {
|
||||
this.startLoading();
|
||||
|
||||
Reference in New Issue
Block a user