@typeberry/jam 0.1.2-753d258 → 0.1.2-80d53fd
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/importer/index.js +5 -1
- package/importer/index.js.map +1 -1
- package/index.js +5 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -58872,12 +58872,16 @@ class PartiallyUpdatedState {
|
|
|
58872
58872
|
*
|
|
58873
58873
|
* NOTE the info may be updated compared to what is in the state.
|
|
58874
58874
|
*
|
|
58875
|
-
* Takes into account
|
|
58875
|
+
* Takes into account newly created services as well.
|
|
58876
58876
|
*/
|
|
58877
58877
|
getServiceInfo(destination) {
|
|
58878
58878
|
if (destination === null) {
|
|
58879
58879
|
return null;
|
|
58880
58880
|
}
|
|
58881
|
+
const isEjected = this.stateUpdate.services.servicesRemoved.some((x) => x === destination);
|
|
58882
|
+
if (isEjected) {
|
|
58883
|
+
return null;
|
|
58884
|
+
}
|
|
58881
58885
|
const maybeNewService = this.stateUpdate.services.servicesUpdates.find((update) => update.serviceId === destination);
|
|
58882
58886
|
if (maybeNewService !== undefined) {
|
|
58883
58887
|
return maybeNewService.action.account;
|