{
find(
- propEq(currentUser.legal_address.country,"code" ),
+ propEq("code", currentUser.legal_address.country),
countries
).name
}
@@ -131,13 +131,13 @@ export class ViewProfilePage extends React.Component
{
{
find(
propEq(
- currentUser.legal_address.state_or_territory,
- "code"
+ "code",
+ currentUser.legal_address.state_or_territory
),
find(
propEq(
- currentUser.legal_address.country,
- "code"
+ "code",
+ currentUser.legal_address.country
),
countries
).states
diff --git a/static/js/lib/api.js b/static/js/lib/api.js
index 75692afbc..a24d9a7bb 100644
--- a/static/js/lib/api.js
+++ b/static/js/lib/api.js
@@ -27,11 +27,11 @@ export function csrfSafeMethod(method: string): boolean {
return /^(GET|HEAD|OPTIONS|TRACE)$/.test(method);
}
-const headers = R.mergeRight({ headers: {} });
+const headers = R.merge({ headers: {} });
-const method = R.mergeRight({ method: "GET" });
+const method = R.merge({ method: "GET" });
-const credentials = R.mergeRight({ credentials: "same-origin" });
+const credentials = R.merge({ credentials: "same-origin" });
const setWith = R.curry((path, valFunc, obj) => R.set(path, valFunc(), obj));
@@ -40,7 +40,7 @@ const csrfToken = R.unless(
setWith(R.lensPath(["headers", "X-CSRFToken"]), () => getCookie("csrftoken")),
);
-const jsonHeaders = R.mergeRight({
+const jsonHeaders = R.merge({
headers: {
"Content-Type": "application/json",
Accept: "application/json",
diff --git a/yarn.lock b/yarn.lock
index 8f1b86437..c7bd7cd9a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10190,7 +10190,7 @@ __metadata:
prop-types: ^15.5.10
query-string: ^6.4.0
raf: ^3.4.1
- ramda: ^0.30.0
+ ramda: ^0.26.1
react: ^16.8.4
react-addons-shallow-compare: ^15.6.0
react-day-picker: ^7.3.0
@@ -11868,6 +11868,13 @@ __metadata:
languageName: node
linkType: hard
+"ramda@npm:^0.26.1":
+ version: 0.26.1
+ resolution: "ramda@npm:0.26.1"
+ checksum: 19c2730e44c129538151ae034c89be9b2c6a4ccc7c65cff57497418bc532ce09282f98cd927c39b0b03c6bc3f1d1a12d822b7b07f96a1634f4958a6c05b7b384
+ languageName: node
+ linkType: hard
+
"ramda@npm:^0.27.0, ramda@npm:^0.27.1":
version: 0.27.1
resolution: "ramda@npm:0.27.1"
@@ -11875,13 +11882,6 @@ __metadata:
languageName: node
linkType: hard
-"ramda@npm:^0.30.0":
- version: 0.30.1
- resolution: "ramda@npm:0.30.1"
- checksum: ce6f4b6b967a84a4e65c01ab1b1cdd73d46b8efe71aeccf5d1443c56c4e31a0ea82ece7df6510453dd3d83b92cabf8a6b4d50d189a1b35c08a6f44b281bebf79
- languageName: node
- linkType: hard
-
"randexp@npm:0.4.6":
version: 0.4.6
resolution: "randexp@npm:0.4.6"