From fe013576a7f896f34c04f2ee744a0dca60813c2c Mon Sep 17 00:00:00 2001 From: Alex Komoroske Date: Sat, 6 Jul 2024 07:48:52 -0700 Subject: [PATCH] Show a success message after failing to fetch permissions. Part of #690. --- src/actions/user.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/actions/user.ts b/src/actions/user.ts index 6b808af6..41a918eb 100644 --- a/src/actions/user.ts +++ b/src/actions/user.ts @@ -304,6 +304,10 @@ export const updatePermissions = (uid : Uid, tryCount = 0) : ThunkSomeAction => //return a {}. permissions: snapshot.data() || {}, }); + //If we already showed a warning, show a success message too. + if (tryCount > 0) { + console.log('Permissions fetched after ', tryCount, ' tries'); + } } catch(err) { //This can happen if we're stuck waiting for a very large download and the system erroneously thinks the storage is down. //We'll try again in a second, up to 3 times.