Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Replace ?? with ||
Browse files Browse the repository at this point in the history
It was causing Bundlephobia build errors:
pastelsky/bundlephobia#530
  • Loading branch information
aabounegm committed Oct 12, 2021
1 parent 61259cc commit 7720a02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion attractions/checkbox/checkbox-group.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
*/
export let maxReachedTooltip = null;
$: maxReachedTooltipFinal =
maxReachedTooltip ?? `Can only select ${max} value${s(max)}.`;
maxReachedTooltip || `Can only select ${max} value${s(max)}.`;
$: currentChecked = items.reduce((acc, elt) => acc + elt.checked, 0);
Expand Down
2 changes: 1 addition & 1 deletion attractions/chip/checkbox-chip-group.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*/
export let maxReachedTooltip = null;
$: maxReachedTooltipFinal =
maxReachedTooltip ?? `Can only select ${max} value${s(max)}.`;
maxReachedTooltip || `Can only select ${max} value${s(max)}.`;
$: currentChecked = items.reduce((acc, elt) => acc + elt.checked, 0);
Expand Down

0 comments on commit 7720a02

Please sign in to comment.