Skip to content

Commit

Permalink
Merge 302c320 into 7ec5040
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Apr 20, 2021
2 parents 7ec5040 + 302c320 commit 3f0d973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions scss/_toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
@media #{$rt-mobile} {
.#{$rt-namespace}__toast {
margin-bottom: 0;
border-radius: 0;
}
}
8 changes: 2 additions & 6 deletions src/hooks/useToastContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@ export function useToastContainer(props: ToastContainerProps) {
}

function clearWaitingQueue({ containerId }: ClearWaitingQueueParams) {
const { limit, enableMultiContainer } = instance.props;
if (
limit &&
(!containerId ||
(instance.containerId === containerId && enableMultiContainer))
) {
const { limit } = instance.props;
if (limit && (!containerId || instance.containerId === containerId)) {
toastCount -= queue.length;
queue = [];
}
Expand Down

0 comments on commit 3f0d973

Please sign in to comment.