We have a function (hideWorkspaceAlertMessage) that clears the policy alertMessage property. It was added in this old PR, but I don't see it being populated anymore. Is alertMessage still being used in the BE? If no, I want to remove it from the FE.
old pr https://github.com/Expensify/App/pull/5560/changes#diff-5fd7c80f3a9b43595640753f4037ca2b7d0bebeca557a20c4a06f89dc5028ccfR206-L210
function
|
function hideWorkspaceAlertMessage(policyID: string) { |
|
if (!deprecatedAllPolicies?.[policyID]) { |
|
return; |
|
} |
|
|
|
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {alertMessage: ''}); |
|
} |
@MelvinBot help answer the question please
We have a function (hideWorkspaceAlertMessage) that clears the policy alertMessage property. It was added in this old PR, but I don't see it being populated anymore. Is alertMessage still being used in the BE? If no, I want to remove it from the FE.
old pr https://github.com/Expensify/App/pull/5560/changes#diff-5fd7c80f3a9b43595640753f4037ca2b7d0bebeca557a20c4a06f89dc5028ccfR206-L210
function
App/src/libs/actions/Policy/Policy.ts
Lines 2065 to 2071 in 1185070
@MelvinBot help answer the question please