feat: add check WA business account

This commit is contained in:
Adhiraj Singh
2022-07-27 12:45:24 +05:30
parent 9e096c731c
commit 34f2095263

View File

@@ -347,3 +347,11 @@ export const getCodeFromWSError = (error: Error) => {
return statusCode return statusCode
} }
/**
* Is the given platform WA business
* @param platform AuthenticationCreds.platform
*/
export const isWABusinessPlatform = (platform: string) => {
return platform === 'smbi' || platform === 'smba'
}