Skip to content

Commit

Permalink
Merge pull request #32773 from bernhardoj/fix/29853-distance-rate-update
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisl authored Dec 12, 2023
2 parents f843b00 + ca63857 commit 6b1460f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -957,7 +950,7 @@ function updateWorkspaceCustomUnitAndRate(policyID, currentCustomUnit, newCustom
'UpdateWorkspaceCustomUnitAndRate',
{
policyID,
...(!networkStatus.isOffline && {lastModified}),
lastModified,
customUnit: JSON.stringify(newCustomUnitParam),
customUnitRate: JSON.stringify(newCustomUnitParam.rates),
},
Expand Down

0 comments on commit 6b1460f

Please sign in to comment.