From 8481aadfd9f413620a5d16bc1e3144e1126e4839 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 8 Nov 2021 15:42:55 -0300 Subject: [PATCH] fix method type check --- .../src/pages/home/AddingProviderScreen.stories.tsx | 6 +++++- .../anastasis-webui/src/pages/home/AddingProviderScreen.tsx | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx index 60261bd0d..a96734caa 100644 --- a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.stories.tsx @@ -40,7 +40,11 @@ export const NewProvider = createExample(TestedComponent, { ...reducerStatesExample.authEditing, } as ReducerState); -export const NewSMSProvider = createExample(TestedComponent, { +export const NewVideoProvider = createExample(TestedComponent, { + ...reducerStatesExample.authEditing, +} as ReducerState, { providerType: 'video'}); + +export const NewSmsProvider = createExample(TestedComponent, { ...reducerStatesExample.authEditing, } as ReducerState, { providerType: 'sms'}); diff --git a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx index d2d22374e..5cf6fbb09 100644 --- a/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/AddingProviderScreen.tsx @@ -19,12 +19,13 @@ async function testProvider(url: string, expectedMethodType?: string): Promise