diff --git a/src/Utils/generics.ts b/src/Utils/generics.ts index b59da12..edbcdd2 100644 --- a/src/Utils/generics.ts +++ b/src/Utils/generics.ts @@ -346,4 +346,12 @@ export const getCodeFromWSError = (error: Error) => { } return statusCode +} + +/** + * Is the given platform WA business + * @param platform AuthenticationCreds.platform + */ +export const isWABusinessPlatform = (platform: string) => { + return platform === 'smbi' || platform === 'smba' } \ No newline at end of file