fix: use a specific feature flag for workspace (#1133)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsDev } from '@Lib/Utils'
|
||||
import { WorkspacesEnabled } from '@Lib/constants'
|
||||
import AsyncStorage from '@react-native-community/async-storage'
|
||||
import SNReactNative from '@standardnotes/react-native-utils'
|
||||
import {
|
||||
@@ -316,7 +316,7 @@ export class MobileDeviceInterface implements DeviceInterface {
|
||||
}
|
||||
|
||||
performSoftReset() {
|
||||
if (IsDev) {
|
||||
if (WorkspacesEnabled) {
|
||||
SNReactNative.exitApp()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import { IsDev } from '@Lib/Utils'
|
||||
|
||||
export enum ErrorMessage {
|
||||
GeneralText = 'An error occurred. Please try again later.',
|
||||
}
|
||||
|
||||
export const WorkspacesEnabled = IsDev
|
||||
|
||||
Reference in New Issue
Block a user