Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
evwilliams committed Jan 19, 2024
1 parent dae93d1 commit f7fd2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SettingsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { download } from '../Utils'
type SettingsProps = {} & React.HTMLAttributes<HTMLDivElement>

const SettingsList = ({ ...rest }: SettingsProps) => {
const { thoughts } = useThoughts()
const { sortedThoughts } = useThoughts()

return (
<div {...rest}>
Expand All @@ -15,7 +15,7 @@ const SettingsList = ({ ...rest }: SettingsProps) => {
<li key="export">
<button
className="flex flex-row items-center gap-2"
onClick={() => download(thoughts, 'meditations.json')}
onClick={() => download(sortedThoughts, 'meditations.json')}
>
<span className="grow">Export thoughts as json</span>
<DownloadIcon className="h-6 w-6" />
Expand Down

0 comments on commit f7fd2ed

Please sign in to comment.