From 4e18f47f283830c8800a5884cb080535e3b98318 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 13 Jun 2021 12:21:11 +0200 Subject: [PATCH] web/flows: fix expiry not shown on consent stage when loading Signed-off-by: Jens Langhammer --- web/src/pages/stages/consent/ConsentStageForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/stages/consent/ConsentStageForm.ts b/web/src/pages/stages/consent/ConsentStageForm.ts index 31e968d7d..66f0ccb6d 100644 --- a/web/src/pages/stages/consent/ConsentStageForm.ts +++ b/web/src/pages/stages/consent/ConsentStageForm.ts @@ -15,7 +15,7 @@ export class ConsentStageForm extends ModelForm { return new StagesApi(DEFAULT_CONFIG).stagesConsentRetrieve({ stageUuid: pk, }).then(stage => { - this.showExpiresIn = stage.name === ConsentStageModeEnum.Expiring; + this.showExpiresIn = stage.mode === ConsentStageModeEnum.Expiring; return stage; }); }