Fix missing fee problem when ORD returns missing membership information
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
const { API } = require('../../helpers/api');
|
||||
const { officeRnDAPIErrors } = require('../../constants/constants');
|
||||
|
||||
const fetchRates = () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
@@ -16,7 +17,8 @@ const fetchRates = () => {
|
||||
resolve(cleanedRates);
|
||||
})
|
||||
.catch((error) => {
|
||||
reject(error);
|
||||
console.log("[Fetch Rates] Failed to fetch rates : ", error);
|
||||
reject(officeRnDAPIErrors.FAILED_TO_FETCH_RATES);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user