Skip to content

Commit 86e3cb6

Browse files
getProjectBillingInformation will return null values if can't fetch from API
1 parent 8bc28f7 commit 86e3cb6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/common/helper.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ async function getProjectBillingInformation (projectId) {
773773
}
774774
} catch (err) {
775775
if (_.get(err, 'response.status') === HttpStatus.NOT_FOUND) {
776-
return null
776+
return {
777+
billingAccountId: null,
778+
markup: null
779+
}
777780
} else {
778781
// re-throw other error
779782
throw err

0 commit comments

Comments
 (0)