Skip to content

Commit 8b310d0

Browse files
authoredNov 12, 2016
Merge pull request #25 from FoxComm/fix/credit-card-again
I was wrong the second time. Demetrious was right.
2 parents 9056cdd + cd761a1 commit 8b310d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/api/credit-cards.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export default class CreditCards {
5454

5555
// @method setAsDefault(creditCardId: Number): Promise<CreditCard>
5656
// Sets selected credit card as default.
57-
setAsDefault(creditCardId) {
58-
return this.api.post(endpoints.creditCardDefault(creditCardId));
57+
setAsDefault(creditCardId, isDefault = true) {
58+
return this.api.post(endpoints.creditCardDefault(creditCardId), { isDefault: isDefault });
5959
}
6060

6161
// @method delete(creditCardId: Number): Promise

0 commit comments

Comments
 (0)