diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 36277216f87c..2c046bfc2a24 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -482,10 +482,7 @@ function getMoneyRequestInformation( // For now it only uses the first tag of the policy, since multi-tags are not yet supported const tagListKey = _.first(_.keys(policyTags)); const uniquePolicyRecentlyUsedTags = recentlyUsedPolicyTags ? _.filter(recentlyUsedPolicyTags[tagListKey], (recentlyUsedPolicyTag) => recentlyUsedPolicyTag !== tag) : []; - if (tag) { - uniquePolicyRecentlyUsedTags.unshift(tag); - } - optimisticPolicyRecentlyUsedTags[tagListKey] = [...uniquePolicyRecentlyUsedTags]; + optimisticPolicyRecentlyUsedTags[tagListKey] = [tag, ...uniquePolicyRecentlyUsedTags]; } // If there is an existing transaction (which is the case for distance requests), then the data from the existing transaction