Skip to content

Commit

Permalink
Display loading icon for loading toast (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski authored Mar 1, 2024
1 parent 6cbaffc commit 7e2abfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ const Toast = (props: ToastProps) => {
<>
{toastType || toast.icon || toast.promise ? (
<div data-icon="">
{toast.promise && toast.type === 'loading' && !toast.icon
{toast.promise || (toast.type === 'loading' && !toast.icon)
? toast.icon || icons?.loading || getLoadingIcon()
: null}
{toast.type !== 'loading' ? toast.icon || icons?.[toastType] || getAsset(toastType) : null}
Expand Down

0 comments on commit 7e2abfc

Please sign in to comment.