Commit f9eef24 1 parent 99ca377 commit f9eef24 Copy full SHA for f9eef24
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ function BookTravelButton({text}: BookTravelButtonProps) {
50
50
// e.g., when the user selects "Trips" from the Expensify Classic menu in HybridApp.
51
51
const [ wasNewDotLaunchedJustForTravel ] = useOnyx ( ONYXKEYS . IS_SINGLE_NEW_DOT_ENTRY ) ;
52
52
53
+ const hideMaintenanceModal = ( ) => setMaintenanceModalVisibility ( false ) ;
54
+
53
55
const bookATrip = useCallback ( ( ) => {
54
56
setErrorMessage ( '' ) ;
55
57
@@ -130,8 +132,8 @@ function BookTravelButton({text}: BookTravelButtonProps) {
130
132
/>
131
133
< ConfirmModal
132
134
title = { translate ( 'travel.maintenance.title' ) }
133
- onConfirm = { ( ) => setMaintenanceModalVisibility ( false ) }
134
- onCancel = { ( ) => setMaintenanceModalVisibility ( false ) }
135
+ onConfirm = { hideMaintenanceModal }
136
+ onCancel = { hideMaintenanceModal }
135
137
isVisible = { isMaintenanceModalVisible }
136
138
prompt = { translate ( 'travel.maintenance.message' ) }
137
139
confirmText = { translate ( 'common.buttonConfirm' ) }
You can’t perform that action at this time.
0 commit comments