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

View file

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