forked from digitalbitbox/bitbox-wallet-app
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend/bitbox02/settings: handle attestation==null
The backend can in theory return nil/null in the attestation endpoint, if the endpoint is called before the device.Init() function has finished, where the attesation check is performed. The bb02 init is a bit messy, in the above state probably most/all other bb02 calls would be broken too. For now, we simply adjust the return type of `verifyAttestation()` to match the backend.
- Loading branch information
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters