Skip to content

Need to handle when we cannot connect to the device #17

@ta32

Description

@ta32
  const openDevice = () => {
    if (user.device === null) {
      console.error('wallet is not initialized');
      return;
    }
    getEncryptionKey(user.device).then((keyPair) => {
      if (keyPair !== null) {
        userDispatch({ type: 'ACTIVATED_TMP_ON_DEVICE', keyPair });
        setLoading(true);
        setLocation(Routes.DASHBOARD);
      } else {
        // TODO: handle error -- user decided not to activate error or pin was wrong
      }
    });
  };

for instance with pathId was empty we could not connect

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions