Skip to content

Commit db49c0b

Browse files
authored
Merge pull request #4589 from serlo/enable-vidis
feat: enable vidis login button
2 parents b18f0b0 + 80e4b32 commit db49c0b

File tree

2 files changed

+1
-40
lines changed

2 files changed

+1
-40
lines changed

apps/web/src/components/auth/node.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { useInstanceData } from '@/contexts/instance-context'
1212
import { cn } from '@/helper/cn'
1313
import { isProduction } from '@/helper/is-production'
1414
import { triggerSentry } from '@/helper/trigger-sentry'
15-
import { isVidisActive } from '@/pages/auth/___activate_vidis'
1615

1716
export interface NodeProps {
1817
node: UiNode
@@ -108,11 +107,7 @@ export function Node({
108107
/>
109108
)
110109
}
111-
if (
112-
(!isProduction || isVidisActive()) &&
113-
attributes.name === 'provider' &&
114-
attributes.value === 'vidis'
115-
) {
110+
if (attributes.name === 'provider' && attributes.value === 'vidis') {
116111
return (
117112
<LoginButtonVidis
118113
attributes={attributes}

apps/web/src/pages/auth/___activate_vidis.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)