diff --git a/android/app/build.gradle b/android/app/build.gradle index 57f920b6052a..857b33453c42 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -156,8 +156,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001021500 - versionName "1.2.15-0" + versionCode 1001021501 + versionName "1.2.15-1" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index 1cfb09e96fe1..a2e005f3f53e 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -30,7 +30,7 @@ CFBundleVersion - 1.2.15.0 + 1.2.15.1 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index 5de247fa7d85..f92096a25376 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.2.15.0 + 1.2.15.1 diff --git a/package-lock.json b/package-lock.json index 89384a0b0317..b8b2eaf09e4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "new.expensify", - "version": "1.2.15-0", + "version": "1.2.15-1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "new.expensify", - "version": "1.2.15-0", + "version": "1.2.15-1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 135ed7abae94..ed9ab89c9a7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.2.15-0", + "version": "1.2.15-1", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", diff --git a/src/libs/actions/Policy.js b/src/libs/actions/Policy.js index 2abefa28bdbd..b51666f0e86f 100644 --- a/src/libs/actions/Policy.js +++ b/src/libs/actions/Policy.js @@ -715,10 +715,11 @@ function clearDeleteWorkspaceError(policyID) { /** * Generate a policy name based on an email and policy list. + * @param {String} [email] the email to base the workspace name on. If not passed, will use the logged in user's email instead * @returns {String} */ -function generateDefaultWorkspaceName() { - const emailParts = sessionEmail.split('@'); +function generateDefaultWorkspaceName(email = '') { + const emailParts = email ? email.split('@') : sessionEmail.split('@'); let defaultWorkspaceName = ''; if (!emailParts || emailParts.length !== 2) { return defaultWorkspaceName; @@ -769,7 +770,7 @@ function generatePolicyID() { */ function createWorkspace(ownerEmail = '', makeMeAdmin = false) { const policyID = generatePolicyID(); - const workspaceName = generateDefaultWorkspaceName(); + const workspaceName = generateDefaultWorkspaceName(ownerEmail); const { announceChatReportID,