Skip to content

Find #85761

@rushatgabhane

Description

@rushatgabhane

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions