Skip to content

Commit

Permalink
fix(web): usingTpm handles a null configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 21, 2025
1 parent 02b35cf commit bba0204
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/core/InstallationFinished.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const SuccessIcon = () => <Icon name="check_circle" className="icon-xxxl color-s
// TODO: define some utility method to get the device used as root (drive, partition, logical volume).
// TODO: use type checking for config.
function usingTpm(config): boolean {
if (!config) {
return null;
}

const { guided, drives = [], volumeGroups = [] } = config;

if (guided !== undefined) {
Expand Down

0 comments on commit bba0204

Please sign in to comment.