Checking commit response for result.result instead of errorCode

This commit is contained in:
Jonathan Putney
2020-08-19 09:27:17 -04:00
parent 7f1d9953e4
commit 54005312fd
6 changed files with 20 additions and 19 deletions

View File

@@ -1066,7 +1066,8 @@ export default class BaseAPI {
return genericError;
}
if (result.errorCode === 0) {
if (result.result === true ||
result.result === global_constants.SCORM_TRUE) {
api.processListeners('CommitSuccess');
} else {
api.processListeners('CommitError');