Skip to content

Commit

Permalink
chore(webapp): improve error message in UserFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
anupcowkur committed Nov 16, 2023
1 parent 893dafa commit 69593e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions measure-web-app/app/components/user_flow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const UserFlow: React.FC<UserFlowProps> = ({ authToken, appId, startDate, endDat
return (
<div className="flex items-center justify-center border border-black text-black font-sans text-sm w-5/6 h-screen">
{ journeyApiStatus === JourneyApiStatus.Loading && <p className="text-lg">Updating data...</p> }
{ journeyApiStatus === JourneyApiStatus.Error && <p className="text-lg">Error fetching data. Please try again.</p> }
{ journeyApiStatus === JourneyApiStatus.Success
{ journeyApiStatus === JourneyApiStatus.Error && <p className="text-lg">Error fetching data. Please refresh page or change filters to try again.</p> }
{ journeyApiStatus === JourneyApiStatus.Success
&& <ResponsiveSankey
data={data}
margin={{ top: 80, right: 120, bottom: 80, left: 120 }}
Expand Down

0 comments on commit 69593e5

Please sign in to comment.