From 07817ed9f1720fa8237c3753f1243146badfa8a5 Mon Sep 17 00:00:00 2001 From: "Krishna (via MelvinBot)" Date: Fri, 22 May 2026 02:23:28 +0000 Subject: [PATCH] Fix Save button position on Add distance rate page When the date-bound mileage rate beta is enabled, the Save button sits directly below the form inputs instead of at the bottom of the RHP. Toggle submitFlexEnabled based on the beta flag so the submit button container gets flex:1 styling and pushes to the bottom. Co-authored-by: Krishna --- src/pages/workspace/distanceRates/CreateDistanceRatePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/distanceRates/CreateDistanceRatePage.tsx b/src/pages/workspace/distanceRates/CreateDistanceRatePage.tsx index 80842f7e6a40..b5c1ac3ce3b8 100644 --- a/src/pages/workspace/distanceRates/CreateDistanceRatePage.tsx +++ b/src/pages/workspace/distanceRates/CreateDistanceRatePage.tsx @@ -118,7 +118,7 @@ function CreateDistanceRatePage({ enabledWhenOffline style={styles.flexGrow1} shouldHideFixErrorsAlert={!isDateBoundMileageRateEnabled} - submitFlexEnabled={false} + submitFlexEnabled={isDateBoundMileageRateEnabled} submitButtonStyles={[styles.mh5, styles.mt0]} addBottomSafeAreaPadding >