File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/app/components/Ionic/components/UpdateGate Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change
1
+ Ignore UpdateGate in mobile app until we publish on Google Play
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export const UpdateGate: FC<PropsWithChildren> = ({ children }) => {
84
84
} = useContext ( IonicContext )
85
85
86
86
if ( updateAvailability === UpdateAvailability . UPDATE_NOT_AVAILABLE ) return children
87
+ if ( updateAvailability === UpdateAvailability . UNKNOWN ) return children
87
88
88
89
const handleNavigateToAppStore = ( ) => {
89
90
navigateToAppStore ( )
@@ -104,7 +105,6 @@ export const UpdateGate: FC<PropsWithChildren> = ({ children }) => {
104
105
{ [
105
106
UpdateAvailability . UPDATE_AVAILABLE ,
106
107
UpdateAvailability . UPDATE_IN_PROGRESS ,
107
- UpdateAvailability . UNKNOWN ,
108
108
UpdateAvailability . ERROR ,
109
109
] . includes ( updateAvailability ) && (
110
110
< Box flex = "grow" >
@@ -161,7 +161,7 @@ export const UpdateGate: FC<PropsWithChildren> = ({ children }) => {
161
161
}
162
162
/>
163
163
) }
164
- { [ UpdateAvailability . UNKNOWN , UpdateAvailability . ERROR ] . includes ( updateAvailability ) && (
164
+ { UpdateAvailability . ERROR === updateAvailability && (
165
165
< Button type = "button" onClick = { skipUpdate } >
166
166
< Text color = "white" weight = "bolder" size = "small" >
167
167
{ t ( 'mobileUpdate.later' , 'Later' ) }
You can’t perform that action at this time.
0 commit comments