Skip to content

Commit

Permalink
feat: auto use mock data when in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Oct 1, 2024
1 parent 6e09fa7 commit fae9b1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contexts/display-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const DisplayProvider: FC<{ children: React.ReactNode }> = ({
const { data: displayData } = useRTDB<
FormattedDataMapping<typeof displayType>
>({
path: `/data/${displayType}`,
path: `/${
process.env.NODE_ENV === 'development' ? 'test' : 'data'
}/${displayType}`,
});

// Format data based on displayType
Expand Down

0 comments on commit fae9b1d

Please sign in to comment.