Skip to content

Commit 6bde2d3

Browse files
authored
Merge pull request #2199 from oasisprotocol/lw/ignore-update-gate
Ignore UpdateGate in mobile app until we publish on Google Play
2 parents 236b6f9 + 1b5b389 commit 6bde2d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.changelog/2199.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ignore UpdateGate in mobile app until we publish on Google Play

src/app/components/Ionic/components/UpdateGate/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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')}

0 commit comments

Comments
 (0)