message: fix(origin-ui-core): check user is active before load certs
diff: @@ -29,7 +29,8 @@ import {
  import {
  IOriginConfiguration,
  IUserWithRelations,
  - IOffChainDataSource
  + IOffChainDataSource,
  + UserStatus
  } from '@energyweb/origin-backend-core';
  import {
  setActiveBlockchainAccountAddress,
  @@ -396,7 +397,10 @@ export function* fetchDataAfterConfigurationChange(
  for (const device of producingDevices) {
  yield put(producingDeviceCreatedOrUpdated(device));
  }
  - const { blockchainAccountAddress }: IUserWithRelations = yield select(getUserOffchain);
  + const user = yield select(getUserOffchain);
  + if (user) {
  + const { blockchainAccountAddress, status }: IUserWithRelations = user;
  + if (status === UserStatus.Active) {
  const web3: ethers.providers.Web3Provider = yield select(getWeb3);
  const activeUser = web3.getSigner(blockchainAccountAddress);
  const onChainCertificates: Certificate[] = yield apply(
  @@ -436,6 +440,8 @@ export function* fetchDataAfterConfigurationChange(
  for (const certificate of certificates) {
  yield put(update ? updateCertificate(certificate) : addCertificate(certificate));
  }
  + }
  + }
  yield call(fetchBundles);
  yield call(fetchOrders);
  }
  