Skip to content

Commit

Permalink
Show a success message after failing to fetch permissions.
Browse files Browse the repository at this point in the history
Part of #690.
  • Loading branch information
jkomoros committed Jul 6, 2024
1 parent 8b0e680 commit fe01357
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/actions/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fe01357

Please sign in to comment.