From c64b27cb2ee33d19b56edc23569d368b37924dc8 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Sun, 22 Oct 2023 22:04:50 +0100 Subject: [PATCH 1/2] Fix the onyx key path --- src/pages/iou/MoneyRequestSelectorPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/MoneyRequestSelectorPage.js b/src/pages/iou/MoneyRequestSelectorPage.js index 26388ea06ac0..7ffe82e596ed 100644 --- a/src/pages/iou/MoneyRequestSelectorPage.js +++ b/src/pages/iou/MoneyRequestSelectorPage.js @@ -157,7 +157,7 @@ export default compose( withReportOrNotFound(false), withOnyx({ selectedTab: { - key: `${ONYXKEYS.SELECTED_TAB}_${CONST.TAB.RECEIPT_TAB_ID}`, + key: `${ONYXKEYS.COLLECTION.SELECTED_TAB}_${CONST.TAB.RECEIPT_TAB_ID}`, }, }), )(MoneyRequestSelectorPage); From fe3e8bc3118816086bde2e28009a9018c41eba71 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Sun, 22 Oct 2023 22:15:30 +0100 Subject: [PATCH 2/2] Remove underscore --- src/pages/iou/MoneyRequestSelectorPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/MoneyRequestSelectorPage.js b/src/pages/iou/MoneyRequestSelectorPage.js index 7ffe82e596ed..979be64f68e9 100644 --- a/src/pages/iou/MoneyRequestSelectorPage.js +++ b/src/pages/iou/MoneyRequestSelectorPage.js @@ -157,7 +157,7 @@ export default compose( withReportOrNotFound(false), withOnyx({ selectedTab: { - key: `${ONYXKEYS.COLLECTION.SELECTED_TAB}_${CONST.TAB.RECEIPT_TAB_ID}`, + key: `${ONYXKEYS.COLLECTION.SELECTED_TAB}${CONST.TAB.RECEIPT_TAB_ID}`, }, }), )(MoneyRequestSelectorPage);