Skip to content

Commit e042030

Browse files
tenphiCopilot
andauthored
Update src/components/actions/use-action.ts
Co-authored-by: Copilot <[email protected]>
1 parent 1557951 commit e042030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/actions/use-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export function performClickHandler(
158158

159159
onPress?.(evt);
160160

161-
if (!to && to !== 0) {
161+
if (to == null) {
162162
// Allow 0 as valid navigation (go to current page)
163163
tracking.event(BUTTON_PRESS_EVENT, { qa }, element);
164164
return;

0 commit comments

Comments
 (0)