Skip to content

Commit 86dab3e

Browse files
committed
2 parents 938db6d + 343d155 commit 86dab3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/context/ToastContext.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type Tvarients = {
2222
success: string | ((data: T) => void)
2323
error: string | ((error: unknown) => void)
2424
}
25-
) => Promise<T>
25+
) => Promise<T | undefined>
2626
}
2727
type ToastContext = {
2828
toast: Tvarients
@@ -143,7 +143,6 @@ export const ToastProvider = ({
143143
} else {
144144
error(err)
145145
}
146-
throw err
147146
}
148147
}
149148

0 commit comments

Comments
 (0)