Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Oct 4, 2024
1 parent e463fc9 commit 69e13a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Toast/Toast.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const useProcessToasts = (toasts: ToastData[]) => {
)

// move to unknown state
if (hoursDiff >= 1) {
if (hoursDiff >= 1 || !toastData.txHash?.length) {
toast.remove(toastData.id)
toast.add("unknown", toastData)

Expand Down
2 changes: 1 addition & 1 deletion src/components/Toast/ToastProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const ToastProvider: FC<PropsWithChildren> = ({ children }) => {
)

const progressToasts = toasts.filter((toast) => {
return !toast.bridge && toast.variant === "progress" && toast.txHash
return !toast.bridge && toast.variant === "progress"
})

useBridgeToast(bridgeToasts)
Expand Down

0 comments on commit 69e13a0

Please sign in to comment.