fix(auth): code display for new codes
This commit is contained in:
parent
62441b86bd
commit
54f6f8656d
1 changed files with 2 additions and 1 deletions
|
@ -261,7 +261,8 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
|
|||
return;
|
||||
}
|
||||
}
|
||||
final CodeDisplay display = widget.code!.display.copyWith(tags: tags);
|
||||
final CodeDisplay display =
|
||||
widget.code?.display.copyWith(tags: tags) ?? CodeDisplay(tags: tags);
|
||||
final Code newCode = widget.code == null
|
||||
? Code.fromAccountAndSecret(
|
||||
isStreamCode ? Type.steam : Type.totp,
|
||||
|
|
Loading…
Add table
Reference in a new issue