Increased default timeout for GET_USER_ACCOUNT from 30 seconds to 1 hour, to give the user more time to grant permissions.

This commit is contained in:
CalDescent 2023-03-03 13:20:17 +00:00
parent d51f9368ef
commit 8e2dd60ea0

View File

@ -384,6 +384,10 @@ function getDefaultTimeout(action) {
if (action != null) {
// Some actions need longer default timeouts, especially those that create transactions
switch (action) {
case "GET_USER_ACCOUNT":
// User may take a long time to accept/deny the popup
return 60 * 60 * 1000;
case "FETCH_QDN_RESOURCE":
// Fetching data can take a while, especially if the status hasn't been checked first
return 60 * 1000;