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 }) => {
8484 } = useContext ( IonicContext )
8585
8686 if ( updateAvailability === UpdateAvailability . UPDATE_NOT_AVAILABLE ) return children
87+ if ( updateAvailability === UpdateAvailability . UNKNOWN ) return children
8788
8889 const handleNavigateToAppStore = ( ) => {
8990 navigateToAppStore ( )
@@ -104,7 +105,6 @@ export const UpdateGate: FC<PropsWithChildren> = ({ children }) => {
104105 { [
105106 UpdateAvailability . UPDATE_AVAILABLE ,
106107 UpdateAvailability . UPDATE_IN_PROGRESS ,
107- UpdateAvailability . UNKNOWN ,
108108 UpdateAvailability . ERROR ,
109109 ] . includes ( updateAvailability ) && (
110110 < Box flex = "grow" >
@@ -161,7 +161,7 @@ export const UpdateGate: FC<PropsWithChildren> = ({ children }) => {
161161 }
162162 />
163163 ) }
164- { [ UpdateAvailability . UNKNOWN , UpdateAvailability . ERROR ] . includes ( updateAvailability ) && (
164+ { UpdateAvailability . ERROR === updateAvailability && (
165165 < Button type = "button" onClick = { skipUpdate } >
166166 < Text color = "white" weight = "bolder" size = "small" >
167167 { t ( 'mobileUpdate.later' , 'Later' ) }
You can’t perform that action at this time.
0 commit comments