mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Some Android phones do not have StoreReview?
This commit is contained in:
		| @@ -64,8 +64,8 @@ const SettingsTooot: React.FC = () => { | ||||
|           iconBack='ChevronRight' | ||||
|           onPress={() => { | ||||
|             analytics('settings_review_press') | ||||
|             StoreReview.isAvailableAsync().then(() => | ||||
|               StoreReview.requestReview() | ||||
|             StoreReview?.isAvailableAsync().then(() => | ||||
|               StoreReview?.requestReview() | ||||
|             ) | ||||
|           }} | ||||
|         /> | ||||
|   | ||||
| @@ -41,7 +41,9 @@ const contextsSlice = createSlice({ | ||||
|       if (Updates.releaseChannel.includes('release')) { | ||||
|         state.storeReview.current = state.storeReview.current + action.payload | ||||
|         if (state.storeReview.current === state.storeReview.context) { | ||||
|           StoreReview.isAvailableAsync().then(() => StoreReview.requestReview()) | ||||
|           StoreReview?.isAvailableAsync().then(() => | ||||
|             StoreReview.requestReview() | ||||
|           ) | ||||
|         } | ||||
|       } | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user