From 1c5d442712a05c686a8438f32e84a59674229bb1 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Mon, 17 Jan 2022 11:20:29 -0300 Subject: [PATCH] chore: fix error on error interface --- app/actions/rooms.ts | 2 +- app/reducers/rooms.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions/rooms.ts b/app/actions/rooms.ts index 4ce04d86c..514582ff6 100644 --- a/app/actions/rooms.ts +++ b/app/actions/rooms.ts @@ -11,7 +11,7 @@ export interface ISetSearch extends Action { } export interface IRoomsFailure extends Action { - err: string; + err: Record | string; } export type IRoomsAction = IRoomsRequest & ISetSearch & IRoomsFailure; diff --git a/app/reducers/rooms.ts b/app/reducers/rooms.ts index 86a9820f3..1a6705086 100644 --- a/app/reducers/rooms.ts +++ b/app/reducers/rooms.ts @@ -5,7 +5,7 @@ export interface IRooms { isFetching: boolean; refreshing: boolean; failure: boolean; - errorMessage: Record; + errorMessage: Record | string; searchText: string; showServerDropdown: boolean; closeServerDropdown: boolean;