Skip to content

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas committed Mar 27, 2024
1 parent fc71c0e commit d7476e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/frontend/src/containers/toasts/ToastContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ interface ToastContainerProps extends ToastOptions {
containerClassName?: string;
}

const ToastContainer: FC<ToastContainerProps> = (options) => {
const { position, containerClassName, ...toastOptions } = options;
const ToastContainer: FC<ToastContainerProps> = ({
position,
containerClassName,
...toastOptions
}) => {
return (
<Toaster
containerClassName={containerClassName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const SuperfeedContainer: FC<{
}).unwrap();
} catch (e) {
Logger.error("SuperfeedModule::FeedCard: error liking item", e);
toast("Error sharing item", {
toast("We could not save your preference at this time", {
type: EToastRole.Error,
});
}
Expand Down

0 comments on commit d7476e7

Please sign in to comment.