From d77940a83918663ef5bb0d038541ba9d0cf1d585 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 25 Jan 2021 06:40:20 -0800 Subject: [PATCH] Don't require an app in Flipper specific support questions Summary: Changelog: Submitting a bug report to Flipper itself no longer requires to have an app connected Reviewed By: jknoxville Differential Revision: D26046284 fbshipit-source-id: d86ba7668c4187629752a9c27d63209af61bda13 --- desktop/app/src/reducers/supportForm.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/desktop/app/src/reducers/supportForm.tsx b/desktop/app/src/reducers/supportForm.tsx index b2fe2d467..370daceae 100644 --- a/desktop/app/src/reducers/supportForm.tsx +++ b/desktop/app/src/reducers/supportForm.tsx @@ -99,14 +99,16 @@ export class Group { // OS validation let osError: string | null = null; - if (!selectedOS) { - osError = 'Please select an app from the drop down.'; - } else if (!this.supportedOS.includes(selectedOS)) { - osError = `The group ${ - this.name - } supports exports from ${this.supportedOS.join( - ', ', - )}. But your selected device's OS is ${selectedOS}, which is unsupported.`; + if (this.name !== 'Flipper') { + if (!selectedOS) { + osError = 'Please select an app from the drop down.'; + } else if (!this.supportedOS.includes(selectedOS)) { + osError = `The group ${ + this.name + } supports exports from ${this.supportedOS.join( + ', ', + )}. But your selected device's OS is ${selectedOS}, which is unsupported.`; + } } return {plugins: str, os: osError}; }