Skip to content

Commit

Permalink
Update src/proxy/object.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Lichter <[email protected]>
  • Loading branch information
antfu and TheAlexLichter authored Nov 11, 2023
1 parent 16457e1 commit da554fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function proxifyObject<T extends object>(
prop.key.type === "BooleanLiteral") &&
prop.key.value.toString() === key
) {
return (prop.value as any).value || prop.value;
return (prop.value as any).value ?? prop.value;
}
}
};
Expand Down

0 comments on commit da554fb

Please sign in to comment.