Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
feat: support both founder's and non-founder's green cards
Browse files Browse the repository at this point in the history
  • Loading branch information
firstred committed Feb 3, 2020
1 parent d8a7d7d commit f5d8c09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Binary file added app/images/bunq-mastercard-metal-founders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/images/bunq-mastercard-metal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions src/react/Pages/Cards/CardListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ export const getCardTypeImage = card => {
// check the different credit card types
switch (productType) {
case "MASTERCARD_GREEN":
cardType = "MasterCard Green";
cardImage = "images/bunq-mastercard-metal.png";
if (card.founder_number) {
cardType = "MasterCard Green Founder's Edition";
cardImage = "images/bunq-mastercard-metal-founders.png";
} else {
cardType = "MasterCard Green";
cardImage = "images/bunq-mastercard-metal.png";
}

break;
default:
case "MASTERCARD_TRAVEL":
Expand Down

0 comments on commit f5d8c09

Please sign in to comment.