From d3fafdc066f5b305b1d8838f040593fd744d30a6 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 1 May 2024 15:59:19 -0700
Subject: Fix: put label defs provider above moderation opts provider (#3806)

---
 src/App.native.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'src/App.native.tsx')

diff --git a/src/App.native.tsx b/src/App.native.tsx
index 14daa3bd6..ac6c2e83d 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -80,8 +80,9 @@ function InnerApp() {
             <QueryProvider currentDid={currentAccount?.did}>
               <PushNotificationsListener>
                 <StatsigProvider>
-                  <ModerationOptsProvider>
-                    <LabelDefsProvider>
+                  {/* LabelDefsProvider MUST come before ModerationOptsProvider */}
+                  <LabelDefsProvider>
+                    <ModerationOptsProvider>
                       <LoggedOutViewProvider>
                         <SelectedFeedProvider>
                           <UnreadNotifsProvider>
@@ -97,8 +98,8 @@ function InnerApp() {
                           </UnreadNotifsProvider>
                         </SelectedFeedProvider>
                       </LoggedOutViewProvider>
-                    </LabelDefsProvider>
-                  </ModerationOptsProvider>
+                    </ModerationOptsProvider>
+                  </LabelDefsProvider>
                 </StatsigProvider>
               </PushNotificationsListener>
             </QueryProvider>
-- 
cgit 1.4.1

