Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wallet] Add Japan to restricted CP-DOTO countries #5708

Merged
merged 9 commits into from
Nov 4, 2020
1 change: 1 addition & 0 deletions packages/mobile/src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const pausedFeatures = {
// Using 2 letters alpha code. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
export const countryFeatures = {
RESTRICTED_CP_DOTO: {
JP: true,
PH: true,
},
SANCTIONED_COUNTRY: {
Expand Down
15 changes: 15 additions & 0 deletions packages/mobile/src/utils/countryFeatures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ describe(getCountryFeaturesSelector, () => {
`)
})

it('returns the appropriate features for JP accounts', () => {
const state = getMockStoreData({
account: {
defaultCountryCode: '+81',
},
})

expect(getCountryFeaturesSelector(state)).toMatchInlineSnapshot(`
Object {
"RESTRICTED_CP_DOTO": true,
"SANCTIONED_COUNTRY": false,
}
`)
})

it('returns the appropriate features for CU accounts', () => {
const state = getMockStoreData({
account: {
Expand Down