web/flows: fix expiry not shown on consent stage when loading

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-13 12:21:11 +02:00
parent f10286edf8
commit 4e18f47f28
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export class ConsentStageForm extends ModelForm<ConsentStage, string> {
return new StagesApi(DEFAULT_CONFIG).stagesConsentRetrieve({
stageUuid: pk,
}).then(stage => {
this.showExpiresIn = stage.name === ConsentStageModeEnum.Expiring;
this.showExpiresIn = stage.mode === ConsentStageModeEnum.Expiring;
return stage;
});
}