From 51956f78bc6dde28a9c701e24c8b6b47697878a9 Mon Sep 17 00:00:00 2001 From: Tim Golen Date: Fri, 15 Sep 2023 12:11:10 -0600 Subject: [PATCH] Update README.md Co-authored-by: Ana Margarida Silva --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 13b756b9d..b8bec05c4 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ Background info: 1. The component mounts with a `reportID={1234}` prop 2. `withOnyx` evaluates the mapping 3. `withOnyx` connects to the key `reports_1234` because of the prop passed to the component -3. `withOnyx` connects to the key `policices_undefined` because `report` doesn't exist in the props yet, so the `policyID` defaults to `undefined`. * (see note below) +3. `withOnyx` connects to the key `policies_undefined` because `report` doesn't exist in the props yet, so the `policyID` defaults to `undefined`. * (see note below) 4. Onyx reads the data and updates the state of `withOnyx` with: - `report={{reportID: 1234, policyID: 1, ... the rest of the object ...}}` - `policy={undefined}` (since there is no policy with ID `undefined`)