Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions frontend/web/components/pages/CreateOrganisationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const CreateOrganisationPage: React.FC = () => {
AccountStore.isSaving,
)
const [updateTools] = useUpdateOnboardingMutation({})

const showHostingPreferences =
Utils.isSaas() && Utils.getFlagsmithHasFeature('hosting_preferences')
useEffect(() => {
const onChangeAccountStore = () => {
setAccountStoreSaving(AccountStore.isSaving)
Expand All @@ -38,7 +39,7 @@ const CreateOrganisationPage: React.FC = () => {
AppActions.selectOrganisation(id)
API.setCookie('organisation', `${id}`)

if (Utils.isSaas()) {
if (showHostingPreferences) {
updateTools({
hosting_preferences: hosting,
})
Expand Down Expand Up @@ -121,7 +122,7 @@ const CreateOrganisationPage: React.FC = () => {
placeholder='E.g. ACME Ltd'
onChange={(e: InputEvent) => setName(Utils.safeParseEventValue(e))}
/>
{Utils.isSaas() && (
{showHostingPreferences && (
<InputGroup
inputProps={{ className: 'full-width', name: 'orgName' }}
title={
Expand Down
Loading