From 805d8d5fff3b30fcfc42e75dd96387c7cb0e7f59 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 23 Dec 2022 16:11:05 +0100 Subject: [PATCH] Small fix to geolocation permission flow --- Logic/State/GeoLocationState.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Logic/State/GeoLocationState.ts b/Logic/State/GeoLocationState.ts index c76ccecee..c010d1b78 100644 --- a/Logic/State/GeoLocationState.ts +++ b/Logic/State/GeoLocationState.ts @@ -115,7 +115,9 @@ export class GeoLocationState { this.permission.setData("denied") return } - if (this.permission.data !== "prompt") { + if (this.permission.data !== "prompt" && this.permission.data !== "requested") { + // If the user denies the first prompt, revokes the deny and then tries again, we have to run the flow as well + // Hence that we continue the flow if it is "requested" return } this.requestMoment.setData(new Date())