@copart/ops-tool-kit 1.8.1-alpha.19 → 1.8.1-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ops-tool-kit.js +3 -1
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.8.1-alpha.
|
|
36
|
+
const version$5 = "1.8.1-alpha.20";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -35218,7 +35218,9 @@ function filterOutNotificationByAudienceFirebase(notifications) {
|
|
|
35218
35218
|
function filterOutNotificationByAudience(notifications) {
|
|
35219
35219
|
var userEmail = storage$1.userEmail;
|
|
35220
35220
|
var yardNumber = storage$1.activeYardNumber;
|
|
35221
|
+
var country = storage$1.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
35221
35222
|
return notifications.filter(function (notification) {
|
|
35223
|
+
if (notification.countryCode !== country) return false;
|
|
35222
35224
|
var targets = pathOr$1([], ['targetAudience', 'targets'], notification);
|
|
35223
35225
|
return targets.some(function (target) {
|
|
35224
35226
|
switch (target.type) {
|