diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js index 04f62ab0c393..f33e6637e2de 100644 --- a/src/libs/actions/Policy.js +++ b/src/libs/actions/Policy.js @@ -112,13 +112,6 @@ Onyx.connect({ callback: (val) => (allRecentlyUsedTags = val), }); -let networkStatus = {}; -Onyx.connect({ - key: ONYXKEYS.NETWORK, - waitForCollectionCallback: true, - callback: (val) => (networkStatus = val), -}); - /** * Stores in Onyx the policy ID of the last workspace that was accessed by the user * @param {String|null} policyID @@ -957,7 +950,7 @@ function updateWorkspaceCustomUnitAndRate(policyID, currentCustomUnit, newCustom 'UpdateWorkspaceCustomUnitAndRate', { policyID, - ...(!networkStatus.isOffline && {lastModified}), + lastModified, customUnit: JSON.stringify(newCustomUnitParam), customUnitRate: JSON.stringify(newCustomUnitParam.rates), },